841 karma · joined August 10, 2020
>But the idea of Java being Lisp influenced is questionable. Though they had Guy Steele, who said something about bringing C programmers halfway to Lisp, pretty much the the only Lisp idea in Java is garbage collection.
Java also has some dynamicism through classloaders and reflection.
>The JVM is hostile against the efficient implementation of Lisp-like languages; it doesn't let you pack tag fields into pointer values.
It's a good trade off for Java, pointer coloring is used by ZGC for example.
I dunno, maybe they're just in a place where talking and acting politically is important and useful to them? Perhaps that does make them miserable, if I was a white and rich guy in the US I probably wouldn't have to ever talk about politics.
I don't think the roots are going to be source code-based, but based on cultural transfer.
Anyway, don't use new in C++ is my opinion.
They are. GenZGC is merged into mainline and got into the latest JDK, GenShenandoah didn't manage but will be in next release.
>The problem of GC pauses is solved only if you can afford to waste 5x-20x more memory than the app is really using
I don't think that is true. ZGC uses multi-mapping in order to dereference its colored pointers, this causes some tools to report excessive memory usage but nothing actually hits RAM.
Edit: some links: https://milostosic.github.io/MTuner/overview/why/ https://milostosic.github.io/MTuner/overview/how/
You need to do that? Dang, that sucks. Still "butts in chairs" attitude.
He completely agreed with his 2016 self in the Lex Fridman podcast he did last year.
It also makes deletion a far more complicated situation. You'd essentially be implementing your own allocator then.
Look here for example:
Entry *newVal = malloc(sizeof(Entry)); newVal->key = strdup(key);
Why not:
Entry* e = malloc(sizeof(Entry) + strlen(key));
Now you can also skip the pointer to the key, saving 8 bytes for each entry. Also, just return the hashtable by value, it's so small.
I think that if we're coding in C, C++ or Zig, then it can be fun to actually use the lower level power to our advantage :).
Because of that, basically.
I doubt Mark Reinhold, Brian Goetz or John Rose are undervalued at Oracle because of them not being managers.
What are you even saying?
How did you measure that? What was fastest? I'd imagine sbrk is faster than mmap, but I haven't checked. If you're on Linux, then doing a virtual memory allocation will not cause the memory to have physical representation. Did you populate the pages through looping? Or did you use MAP_POPULATE?
I saw that madvise was going to get MADV_POPULATE_(READ|WRITE) in the Linux kernel mailing lists back in 2021, but I haven't seen it on the kernels that I use (5.4, 5.15)
Is it? I come from a very different background and I'm trying to get a small Java back-end up and running (Quarkus) and wow, it's so painful! There's a huge amount of buy in, to me, in the framework. I found Node, Go and Python to be easier in simply delivering a HTTP(S) server. I've gotta do it in Java for reasons.
No. Go does containerized microservices better because of its lower memory footprint. If you can use GraalVM then that might not matter.
That's the original NextWeb article title.
This sounds sooo crazy to me :), I've just got 0 intuition about this stuff!
>Please don't follow the advice of this column. Be patient. Encourage anyone and everyone to ask questions, even if they're "duplicates" or "easy to answer". Use the Socratic Method (ask questions that lead to more questions). Actually teach people things.
I will not do this unless the person I'm teaching is showing a willingness to dedicate their own resources to the issues at hand. I'll do this for my own child, but if you seriously apply this online at big forums you'll get infested with help vampires. Help vampires F:ing SUCK, for real. You speak with a lot of pathos and like you've never have tried to help people a lot and had to deal with these. These people will do anything to take your energy and time away from you. They'll ask a question that's answerable in the FAQ, you'll direct them there, and they'll say "oh, it's just nicer to speak to people, can't you tell me :)?" or "my situation is very special, it's not answered by the FAQ".
I'm ranting, but holy crap having to deal with help vampires completely destroys your outlook on these things.