HNHacker News
TopNewBestAskShowJobs

the-smug-one

841 karma · joined August 10, 2020

Not actually smug, at least not on purpose.
submissionscomments
the-smug-one··on I am drowning in mutes: The current Threads experience
Is it really so bothersome to you to hear it pointed out that people who aren't rich white men have very real needs that could be solved with political action and as such they might be more inclined to talk about politics? I'm assuming you're talking about the GOP. That party has a lot of poor white voters, they also have a very real need for political action on their part.
the-smug-one··on I am drowning in mutes: The current Threads experience
Sure, I feel you on that. I don't need to have an explanation on, I dunno, the imperial origins of silicon chip production or something when I wanna show you my cool Raspberry pi homebrew. Still, if we're talking about the Silicon Valley banking collapse, don't be surprised if it gets political.
the-smug-one··on Owner of Symbolics Lisp machines IP is interested in a non-commercial release
Is it that big of a step to assume that old school Lispers know about Genera and have been influenced by it?

>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.

the-smug-one··on I am drowning in mutes: The current Threads experience
> I genuinely believe people who like talking about politics are miserable humans.

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.

the-smug-one··on Owner of Symbolics Lisp machines IP is interested in a non-commercial release
My guess is that there are maintenance contracts which can be quite lucrative.
the-smug-one··on Owner of Symbolics Lisp machines IP is interested in a non-commercial release
Generally Java and the JVM. The source code for J9 and Hotspot VM are taken from Smalltalk, which of course had a lot of mixing with Lisp. If you look at Mark Reinhold and John Rose (architects for the OpenJDK project), then you'll also see that they're Lispers.

I don't think the roots are going to be source code-based, but based on cultural transfer.

the-smug-one··on 55 GiB/s FizzBuzz (2021)
It's just pointer bumping (still). If you're continously using new memory then soft page faults and finding physical backing via kernel will dominate. mallocsen want to avoid this scenario, so you often see malloc using more memory than necessary.

Anyway, don't use new in C++ is my opinion.

the-smug-one··on 55 GiB/s FizzBuzz (2021)
>Low pause GCs (ZGC, Shenadoah) for Java are not generational yet.

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.

the-smug-one··on MTuner: C/C++ memory profiler and memory leak finder
That makes sense, its purpose is to alter the behavior of other programs.
the-smug-one··on MTuner: C/C++ memory profiler and memory leak finder
Why should I use MTuner as opposed to Valgrind Massif or Heaptrack?

Edit: some links: https://milostosic.github.io/MTuner/overview/why/ https://milostosic.github.io/MTuner/overview/how/

the-smug-one··on Full Time
We have more horizontal than vertical space, try to utilize that without stacking search results next to each other?
the-smug-one··on Full Time
Which version of Java are you running?
the-smug-one··on John Carmack on shorter work weeks (2016)
>just need to keep that Slack dot green and appear "responsive."

You need to do that? Dang, that sucks. Still "butts in chairs" attitude.

the-smug-one··on John Carmack on shorter work weeks (2016)
>Since the post is tagged 2016, I think it is also more likely than not that John would agree with this now; it's very possible that he'd also agree with it then, but I didn't go beyond the linked comment.

He completely agreed with his 2016 self in the Lex Fridman podcast he did last year.

the-smug-one··on Effective Rust (2021)
A bajillion layers of unnecessary indirection is gonna have the same consequences.
the-smug-one··on A simple hash table in C
>But, if you are making the string part of the entry, that would also require padding the string length to word boundaries so that the struct gets aligned.

It also makes deletion a far more complicated situation. You'd essentially be implementing your own allocator then.

the-smug-one··on A simple hash table in C
Oh sorry, it's from "future improvements" :), I assumed that was the train of thought. You're entirely correct, however.
the-smug-one··on A simple hash table in C
This hashtable sure mallocs a lot!

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 :).

the-smug-one··on A simple hash table in C
>resize the buckets array once it gets too full

Because of that, basically.

the-smug-one··on Growing from engineer to manager
>not dinosaurs like Oracle

I doubt Mark Reinhold, Brian Goetz or John Rose are undervalued at Oracle because of them not being managers.

the-smug-one··on Do we need copyright? (2012)
Without the context of the article your comment makes sense. With the context of the article your comment makes no sense.

What are you even saying?

the-smug-one··on Memory Allocation
> I was having some fun recently just seeing how fast we can allocate large chunks of memory.

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)

the-smug-one··on Microsoft execs on Apple's music store (2003)
>Just compare how simple and easy Java is to get up and running.

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.

the-smug-one··on Virtual Threads Arrive in JDK 21, Ushering a New Era of Concurrency
> So with this, the last thing Go had going for it over Java is gone, right?

No. Go does containerized microservices better because of its lower memory footprint. If you can use GraalVM then that might not matter.

the-smug-one··on The Free Software Foundation is dying
Sure, but that is essentially putting in a gate that will make Linux desktop never be anything but for hardcore users.
the-smug-one··on Why a European mobile operating system can’t challenge Android and iOS
>Just look at this article: it doesn't say "a third mobile OS can't challenge..." but "a European mobile OS can't challenge...". They aren't even shooting for "good" anymore, just "European"

That's the original NextWeb article title.

the-smug-one··on True 3D is much tougher than 2.5D
Just how tall would these be? Micrometers, it seems like. I guess that the materials themselves are not heat conductive enough to divert the heat evenly throughout the stack?

This sounds sooo crazy to me :), I've just got 0 intuition about this stuff!

the-smug-one··on How to Ask Questions the Smart Way (2014)
Edit: OK, I've calmed down. It might not be worth reading what's below this paragraph. The TL;DR is: The cost of helping people is high, it takes time and energy from you. There are people who don't care about your time and energy, they'll use you as much as possible. These people are called help vampires.

>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.

the-smug-one··on Switching from C++ to Rust
I've showed you an alternative encoding, maybe get to work and learn something yourself?
the-smug-one··on Switching from C++ to Rust
Why does the members be lazily init:ed?
← PreviousPage 5 of 11Next →