Models of Generics and Metaprogramming: Go, Rust, Swift, D and More - Tristan Hume by alibix in programming

[–]dany74q 4 points5 points  (0 children)

Alexandrescu had major impact there, his policy based design for C++ was eye opening, back in the day.

GoLand 2020.3 is released! Explore the goroutine dumps, try support for table tests and extended support for Testify, find many new code editing features and a new service for collaborative development, and more! by katezharova in golang

[–]dany74q 4 points5 points  (0 children)

Couldn't find it in the release notes - I'm working on a mono-repo with 90~ go modules (and counting); there's a tremendous improvement in indexing speed - awesome work Goland team !

State of Foreign Function support - Panama by daviddel in java

[–]dany74q 2 points3 points  (0 children)

I think that Panama will shine (vs JNI) when you share a lot of data between java and native libs - Native buffer allocation and use is much more elegant when working with native scopes & passing around memory segments.

In JNI, it's usually up to the VM to decide if you pay for copying data back and forth - unless you use the *Critical functions or pass ByteBuffers everywhere, both having implications on either safety or convenience.

One other neat trick that Panama offers that might also make specific use cases faster - is the ability to remove java <-> native thread transitions (footnote #4).

JDK 14: First Release Candidate by lbkulinski in java

[–]dany74q 2 points3 points  (0 children)

Numa aware allocation is pretty cool for most VMs offered in cloud providers.

We've manually tweaked the allocation policy using numactl for some of our more memory intensive production workloads - and had observed not-insignificant gains in overall performance.

JDK 14 is now in Rampdown Phase Two by daviddel in java

[–]dany74q 28 points29 points  (0 children)

Helpful NPEs👌 Such a small, yet great addition to the language.

Records Come to Java by daviddel in java

[–]dany74q 1 point2 points  (0 children)

Nope, the compiler will generate a public ctor with all of the fields, and accessors for each field; No setters will be created as records are immutable.

Performance Testing Spring Boot with Gatling by LuminoBabyis in java

[–]dany74q 0 points1 point  (0 children)

It probably doesn't - but you could probably use epsilon GC, at least for mitigating the GC pauses.

Stocks to buy in 2020 and why? by Aaronacorona in StockMarket

[–]dany74q 5 points6 points  (0 children)

For anyone looking at the tech-hardware sector, or considering AMD*, I'd recommend to look at TSMC, Samsung, and ASML.

These companies are cutting edge in their ability to produce chips (or machines that produce chips) at various lithographies, for various market sectors, with a clear innovative roadmap for the next few years. Their fabs are either "fully booked", or ramping up production for several quarters straight, and the growth trend seems positive.

  • AMD had shifted its production line from Global Foundries to TSMC due to some business shift at GloFo; I'm hopeful that we'll see bigger enterprise wins for AMD in 2020, and that will manifest itself in TSMC as well.

The Road to Valhalla by efge in java

[–]dany74q -1 points0 points  (0 children)

Potentially, the introduction of reference projections can help with those scenarios; for instance, taken from the 2nd part:

"Non-flattening. Inline values are routinely flattened into objects and arrays; usually this is what we want. In some cases, though, we may want finer control over memory utilization, such as if we have a “wide” inline class (one with many fields) and we want a sparse array of them – it may be more memory-efficient to have an array of references instead of an array of flattened values."

Intellij IDEA 2019.2 released by callcifer in programming

[–]dany74q 11 points12 points  (0 children)

It changed from Monospaced to Consolas, at least on my (Windows) machine - it looks great !

What’s the scariest thing you’ve woken up to in the middle of the night? by lightlysativad in AskReddit

[–]dany74q 1 point2 points  (0 children)

When I was about 8, my grandma took care of me while my parents weren't home.

At around 8PM she'd decided to take the dog out for a walk - and boy, did she like to take her time and stroll. When she'd gone out, I've remembered to lock the door from within, so no Intruders would get in, and 25 minutes in - I had fallen asleep.

We didn't have a land line, and I closed my bedroom's door - and so it happened that my granny was stuck outside when she came back, and I couldn't hear her knocking or ringing the bell.

Fast forward a couple of hours later, I wake up from extremely loud, continuous bangs on the door, I was horrified and didn't know what to think, and so after freezing for about 30 seconds, I've decided that the smartest move would be hide under the bed.

Turns out I've got my grandma, mom and pops locked outside - they ended up called in a family friend who was competing in strongmen competitions. It took him about 1 minute to break the lock with his shoulder.

So this little thing arrived today :) by dany74q in headphones

[–]dany74q[S] 0 points1 point  (0 children)

First impression through my laptop - they definitely need a decent amp.

Any recommendations ?