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 Clang-expand: Expand function invocations into current scope
I just want to know what code is actually called. This is often a pain in C++. I assume this code handles SFINAE etc.
the-smug-one··on Java 21 makes me like Java again
>> (concurrent mark/sweep, parallel old, etc)

Both of those are only picked for low sized heaps with few cores, probably within a container. Were these micro services?

G1 is the default for larger heaps and multiple cores, and ZGC and Shenandoah (low latency GCs) have to be manually turned on AFAIK.

OP said:

>Java doesn’t slow down the allocation rate, it tries to keep up with the churn.

This is incorrect. ZGC will block a thread when it cannot give a thread any memory, because it can't collect and free memory at the pace needed. Google "allocation stall" for this. ZGC can achieve very low latencies akin to Go's GC, I don't know if the throughput is higher or not. Multiple cores and some GiB of heap space is when ZGC will shine.

the-smug-one··on Java 21 makes me like Java again
>finally make coroutines… I mean “virtual threads” a stable feature

Don't you mean fibers? Anyway, I'm pretty sure it's targeted to JDK21.

the-smug-one··on How Instagram scaled to 14 million users with only 3 engineers
For Twitter and TikTok, I bet that the reasons are B2B offerings and not their B2C offerings.
the-smug-one··on Ex-Finance developers mock McKinsey's monitoring metrics
Counting myself as fortunate that I can git-blame and find my managers' (admittedly often old commit) name in the code base :-).
the-smug-one··on Tech Workers Deserve a Union: An Interview with Ethan Marcotte
>I always felt those IT unions in Brazil were not actually run by any worker but by cadres from the employers.

That's a yellow union: https://en.wikipedia.org/wiki/Company_union

These are, for some reason, popular in Denmark.

the-smug-one··on Tech Workers Deserve a Union: An Interview with Ethan Marcotte
I agree, us non-capitalists took more of the cake back then.
the-smug-one··on Tech Workers Deserve a Union: An Interview with Ethan Marcotte
With a union backing them up individuals can more easily:

- Get better at salary negotiation and interviews through having union training - Share how much they earn with other workers, even distributing statistics, reinforcing salary negotiation power and the ability for workers to ensure that businesses doesn't engage in illegal wage fixing - Have union back up when HR are being a pest to protect the company - Ensure that fair severance is distributed when an individual is let go - Negotiate on-call scheduling as a group - Negotiate all other parts of their contract, for example removing pesky no competes - Engage in lobbying

Individuals, even ones with great competence within their field of expertise, have a lot less information regarding the game they're playing with other companies. Unions can help with that.

Note: You can still be in a union without having your workplace be 'unionized' or having a collective agreement with the union. You can still engage in salary negotiations individually, and you may still skip out on being in the workplace's union.

the-smug-one··on Sweden brings more books and handwriting practice back to its tech-heavy schools
I don't think they'll be taught "skrivstil"/cursive, I think it's literally going from less iPads where you play Hangman or whatever to learn to read to more reading and writing. Cursive sucks ass, I hated doing that so much.
the-smug-one··on The way that Jensen Huang runs Nvidia: 40 direct reports, no 1:1s
>I don't see past great leaders (military and not only) doing 1:1s with the members of their groups.

You don't think Titus Labienus discussed anything one on one with Julius Caesar? That just sounds like insanity.

I want 1:1s, it's the best way that I can make my boss work for me. That stuff gets me raises and promotions.

the-smug-one··on Decoded: GNU Coreutils (2018)
You'll have to ask the author that. Now, I'd like to ask the author who cares how you implement 'yes' in Go ;-).
the-smug-one··on Dating app Grindr loses nearly half its staff after trying to force RTO
Is it a big assumption? "Ease of getting a new job" hopefully does correlate with competence (which I equate with 'good performance' here). It's not saying "people who stay at a job with mandatory RTO must necessarily be bad at their jobs", so I don't see why you decided to insult those of us who enjoy remote work.
the-smug-one··on Can a worker-owned restaurant work?
Igalia: https://www.igalia.com/

Works on open source stuff, like Linux kernel, GStreamer, etc.

the-smug-one··on Can a worker-owned restaurant work?
Burn your fiat money then, pretty sure they've got that back in good ole Argentina.
the-smug-one··on Modernizing compiler design for Carbon's toolchain [video]
Did you happen to do any long form prose writing (paper, online article, etc) about the design of the LuaJIT IR? Sounds extremely fascinating.
the-smug-one··on Modernizing compiler design for Carbon's toolchain [video]
I dunno, is that really true? The indices into the array can be 4 instead of 8 bytes on a 64-bit system for example, that would double the indices available in one cache line. And then you have the possibility of storing the in/out node references as indices also, halving the memory there. And I know that work lists and stacks of nodes are common for certain transformations, so that would also have an impact. And that's just one thing, having an index effectively means that you can split your data structure into multiple arrays ('struct of arrays' fashion), which might mean that you're doing fewer accesses and jumps over all.

Considering all of that, I'm really not convinced that plain pointers will beat indices. I also don't see what alias analysis has to do with it in this case, sounds like a compiler could easily do alias analysis on A being accessed only as a T by virtue of A having the type Array<T,N>.

the-smug-one··on Garbage Collection in a Large Lisp System (1984) [pdf]
>Kandria, a commercial game written in Common Lisp [14 ], is used in a more complex benchmark. The game uses a mixture of object-oriented code and numerical code with unboxed arrays. The game is configured identically to the retail version, using a 4GB heap. We played the same part of the game for a few minutes with each collector configuration10, and record the distribution of how long it takes to produce each frame (frame times), and the distribution of pause times in the kandria benchmark.

That's a fun benchmark to have. Seems like gencgc is better than the new GC anyway wrt pause times?

>Very few objects survive garbage collection in Kandria, with less than a megabyte surviving out of a 200 megabyte nursery.

From this sentence I'm going to guess that Kandria performs a lot of per-frame allocations. Having a bump-pointer arena for this which is reset per-frame would probably be quite nice.

The Acknowledgements section is crazy haha, with mentions such as Cliff Click (OG Hotspot JIT compiler architect) and Larry Masinter (Xerox PARC Interlisp) along with the nice SBCL and Kandria devs.

the-smug-one··on Java 21: What’s New?
That's because they want to get it right. The same with Valhalla. The same with Loom.
the-smug-one··on Java 21: What’s New?
I'm sure you can find a flame war or three about pattern matching. Oh boy, the threads you'd have 10 years ago about this stuff.
the-smug-one··on Java 21: What’s New?
You'd do if (getPoint() instanceof ...) if you know it's a Point. But then, you probably don't need to deconstruct it anyway. You can just do p.x+p.y.

This type of pattern matching is mostly useful when you have some T and a few cases, there is also a switch/case equivalent for when you've got a lot of them.

Maybe we'll see some syntax for deconstructing values directly into variables, a la Python in the future.

the-smug-one··on Green vs. brown programming languages (2021)
I'm a C++ dev also, and I don't agree with you! I use clangd, gdb, dynamic analysis tools, no static analysis tools (other than compiler warnings). The help I've gotten from Rust analyzer compared to clangd is pretty large, imho. Rust restraining itself means that our tooling gets to be more free.

Also, gdb is... Not that great. Yes, it definitely does debug my app and in that sense it is great. It is however pretty unstable and gets into weird state I cannot get out of, gdb/mi is a mess, and the text interface (TUI) is not performant enough. I'm still very happy that I have it, but when I look at RemedyBG I get jealous. I'd pay for an equivalent to RemedyBG on Linux, if it was FOSS.

the-smug-one··on It's 2023, so of course I'm learning Common Lisp
Well, did you watch the recommended tutorials? Or are you one of those artists that don't watch their own work :-)?
the-smug-one··on Milan Kundera has died
Oof, I found it, but it's just an offhand comment https://www.youtube.com/watch?v=OqpxT_iJ8Mc approx at 1 minute.
the-smug-one··on Milan Kundera has died
Slavoj Zizek didn't like ULoB, maybe just to be contrarian, I dunno :).
the-smug-one··on Milan Kundera has died
I found the experience of the characters to be pretty moving and not irrelevant. Especially the woman who was cheated on repeatedly. Anyway, very fun book in that sooo much is repeated and the symbolicism is very heavy, makes it fun to find the patterns.

If you read a lot of his books they all turn out to be pretty similar imho, but it fit my vibes when I was like 18.

Another book that's great for re-reading is "The master and Margarita", pretty layered in terms of the different experiences you can have reading it.

the-smug-one··on New study reveals most classic video games are unavailable
In Sweden, it's not. I do think that it's reasonable to have certain expectations about what can be spread about you as a private person, regardless if the things said are true or not.
the-smug-one··on New study reveals most classic video games are unavailable
I don't think it's insane. We can control our reputation slightly, through libel laws.
the-smug-one··on I am drowning in mutes: The current Threads experience
>But maybe next time, you shouldn’t try to reduce people to their sex, class, and gender.

Oh fuck off lmao.

You have absolutely no clue what I meant, if you had taken a step back instead of getting of this offended over a stranger on the internet we could have had a good conversation. You are willfully ignoring what I am saying, let me quote myself:

>I have not said that you're a rich white guy, and I have not said that you're a racist. If you want to talk about this with less emotion and with the assumption that I do listen to you and respect you, then we can do that.

You're still assuming I'm some internet troll, out to hurt your feelings, it's absolute insanity! This is why I asked you to take a day or two.

If you wanna talk in a day or two, then we can still do so, with the same assumptions I outlined in my self-quote.

the-smug-one··on I am drowning in mutes: The current Threads experience
Dude, take a break and come back to this in a day or two. I have not said that you're a rich white guy, and I have not said that you're a racist. If you want to talk about this with less emotion and with the assumption that I do listen to you and respect you, then we can do that.
the-smug-one··on I am drowning in mutes: The current Threads experience
I did mention both gender (guy) and economic (rich) status, clearly this race thing is very sensitive to you.

> I think it’s a dick move to violate that desire and subtly imply they don’t care about race issues.

There was no subtle implication, only your own fantasy.

← PreviousPage 4 of 11Next →