HNHacker News
TopNewBestAskShowJobs

jnordwick

2,704 karma · joined June 5, 2015

https://github.com/minimaxir/hacker-news-undocumented jnordwick@gmail.com
submissionscomments
jnordwick··on Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig
I know. But I have no other explanation as to the latency increase that is seen as the number of threads increases. Do you have a better theory?
jnordwick··on Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig
Yesterday, he posted on Reddit and I expressed some concern with the benchmarks. The benchmarks are claiming 0.36 ns of overhead per call, but only the computing function. There is a second thread running doing the schedule that the overhead numbers don't include. It seems pretty clear he's running on a hyperthreaded 8 core machine (so 16 threads), I was guessing 3 Ghz, so that literally a single cycle of overhead.

Each extra thread adds more overhead from lock contention. At 16 threads overhead is up to 3.6 ns (so 10 times more). I'm guessing, but that would mean the 0.36 ns of overhead included an uncontested lock? That's not possible. There's some other weirdness going on in the benchmark data too. So either I'm not understanding what he's actually timing or maybe there is a bug in the benchmark code.

Also, if you multiply all the values out, I think he's timing in milliseconds (when runtime is calculated and converted to millis, they come out as whole numbers). Don't most benchmarkers have better precision than that? Maybe he's just using `time prog` and the data is just really dirty. Or maybe he's just choosing really, really bad metrics that totally useless for this (this is probably correct, just not sure if there are more issues).

jnordwick··on Features I'd like to see in future IDEs
these are already done or boring (colors comment tags both emacs and nvim do), depend on language spec (images in comments would really depend on the lang spec), depend on language runtime spec and debug info (searching through memory for some struct, replay), or just see lame or do not apply to most languages (commit mask - this might be partially doable at the git level).
jnordwick··on Do quests, not goals
just bad unreproduceable psychology research. there is zero proof of this. we actually have examples going the other way though.

the idea that changing the words used can change your ideas about something is a weak form of the sapir whorf hypothesis, which is close to universally panned in stronger forms and highly suspect in weaker forms except in pop psychology.

pinker called a similar idea - changing a word to avoid previous negative connotations - the euphemism treadmill: from retarded to handicapped to disabled to differetly abled, but never changed anybodies views. they just carried them over. its because language is a reflection of our inner thoughts, not the other way around.

jnordwick··on An experiment in UI density created with Svelte
came here to see if anybody else compared to blbg terminal. loved that thing
jnordwick··on Amazon fined $5.9M for breaking labor law in California
This is how you get sky high CEO salaries. If they are going to help criminally liable, their salaries are going to have to rise to reflect the increased risk. If you got your way, C-level compensation would go up 10x or higher? I'm sure then you would be asking why CEO salaries are so high and we need to do something about them.
jnordwick··on Why "Structure and Interpretation of Computer Programs" matters (2011)
That book was my first programming class and programming ever: CS61A at Berkeley. When I started taking it, one of the TAs said that the ideas in the class were wasted on us - they seemed simple but we wouldn't grasp the fullness of the ideas until we had more experience. He said the class should be required to take twice: your first and last class.

It gives you basics of things like recursion and message passing that are easy to use immediately (well, once you figure them out -- it took me two weeks to be able to write even the simplest recursive function), but there are large conceptual things you won't really see the depth in until you have more experience. The last project is the meta-circular evaluator - writing a scheme program to interpret scheme programs. It is difficult to understand that without having a lot of other background.

Even then along the way learning things like exceptions as implemented through call/cc might be a little too much for a beginner programming. The book is in some ways talks about concepts way outside of a beginner's comfort zone.

jnordwick··on Land value tax in online games and virtual worlds (2022)
I assume he's talking about an agent model from his description, in which case it is exactly trying to derive the macro economy from the micro decisions.

This is a very classical approach. The idea that macro economy follows different models than the micro is somewhat modern. For example this caused a huge crisis in Keynesian economics in the 1970s where inflation models and the Phillips curve were drastically different than predictions and was a factor in the development of New Keynesian theories.

The examples you give aren't about individual micro prediction not agreeing with the macro, but that's the case you can come across in various economic theories where is there is a literal disconnect the two and correct micro equations disagree with the macro equations.

jnordwick··on Harvard Railroad Economics Exam (1906)
Based test. There is this mix of practical knowledge (different types or cars, terminals, etc), but also theory and history or how other country's rail system worked at the time and why they developed in that way. The last question is incredibly good:

> Compare the experience of France with state railroad operation with that of Germany. What, in each case were the causes which led to state operation, the extent of the lines operated, the results from state operation, and the reasons for those results?

jnordwick··on Land value tax in online games and virtual worlds (2022)
no its not possible, and that is the great hubris of many economic planners. They wind up creating simulations that just enforce their bias (because they write code that assumes their biases).

you would literally be trying to model every individual's decisions.

here's simple test: try to predict the stock market -- this is essentially what you are asking (the stock markets can be rigged and it wouldn't matter for this test to be useful because that is actually part of the prediction).

nobody even comes close.

jnordwick··on Land value tax in online games and virtual worlds (2022)
> they've come to the conclusion that the current system is unjust

you want a dictatorship? that's how you get a dictatorship.

jnordwick··on Land value tax in online games and virtual worlds (2022)
then live to your own standards and give it away. This all just virtue signaling until you actually so something with your (not very strongly held) values.

Luck is part of part -- in economics we call it risk. And without risk there is no economic development.

Somebody in your past took a risk and passed profits from that risk down to you. Trying to take the ability to pass that down is both immoral and bad economics.

jnordwick··on Land value tax in online games and virtual worlds (2022)
On the Indian reservations in the US, the land isn't wholly owned by the individuals. It is kept in a tribal trust where a lot of people own slivers of the land (called land shares), and it cannot be used for things like securing loans and economic development if often redistributed through various means. There has been a lot of write ups on this over the years.

It is also the poorest and most corrupt parts of the country. Shit happens on the reservations that would even make Congress blush. If you want to see what happens when land is devalued and not ownable, look at the reservations.

jnordwick··on Land value tax in online games and virtual worlds (2022)
> nontaxpayer ends up being a freeloader and social parasite

And you say the libertarians are childish and simplistic

jnordwick··on Land value tax in online games and virtual worlds (2022)
Phil Spencer is already trying to move development to Alcatraz island. -- likely true.
jnordwick··on Meta's Ad Algorithm Directs Black Users to For-Profit Colleges
They picked universities in Bronx NY, NJ (near Newark), and 30 miles from Chicago and paired them against universities in Colorado, Kanasas, and Arizona State.
jnordwick··on Meta's Ad Algorithm Directs Black Users to For-Profit Colleges
Are they serious? The research paper is terrible. They hand picked pairs of universities they thought to be equal in the their eyes and looked to see which one's were shown. Here are the pairings:

Strayer University (NJ) vs Colorado State

American Intercontinental University (30 miles from Chicago) vs Fort Hayes State University (Kansas)

Monroe College (Bronx NY) vs Arizona State University

Those are your pairings... this has to be a joke.

They made ads for these schools and ran them (nothing like researchers - and I use that loosely - getting involved in their own research).

jnordwick··on Ask HN: Freelancer? Seeking freelancer? (June 2024)
SEEKING WORK | NYC, LA, REMOTE

Backend High Performance Computing, Systems programming, backend specialist C++, C, Rust, Go, Java, Zig, Python, Lua, Postgres, KDB+, QuestDB

Specializing in high performance backend system that need to run fast and smart. Solid knowledge of computer architecture, database internals, Networking (TCP / UDP on epoll / io_uring / XDP), and OS fundamentals.

GitHub: http://github.com/jnordwick

email: jnordwick@proton.me

jnordwick··on What I think about Lua after shipping a project with 60k lines of code
bloomberg has some great teams though. i had lunch with the bond pool team about 5 years ago, and oh my gd they were good. plus the snack floor is awesome in the main office.
jnordwick··on How actors remember their lines
I've taken some Meisner technique workshops, and this is what changed my view of acting:

> “Acting is the ability to behave absolutely truthfully under the imaginary circumstances.” The Meisner Technique is a brick-by-brick process designed to get you out of your head and into your gut. For that to happen, you must learn to put your focus and attention on the most important thing: the other actor."

Actors under this don't pretend, they are. A lot of actors will practice their lines with just reading and reciting, no attempt at tone or inflection -- just flat recitation -- because if you aren't responding to the other actors you are just pretending. A lot of the warmup exercises are based around just responding to the other person in front of you. And they are a great way to get better at talking to people -- that's why I took the classes. Stella Adler has a great quote: "Growth as an actor and as a human being are synonymous.”

I find it so much easier to remember lines with the other person in front of me - I don't memorize random facts well. They always have a connection to something else and I have hop from stone to stone of thoughts sometimes to remember what I was trying to sometimes.

jnordwick··on It's always TCP_NODELAY
linux has auto-corking (and I know of no way to disable it) that will do these short delays on small packets even if the dev doesn't want it
jnordwick··on Court approves 3M multi-billion dollar settlement over PFAS in drinking water
> currently living in a period of the most wealth inequality in recent history.

Th feudal period would like a word with you.

jnordwick··on Court approves 3M multi-billion dollar settlement over PFAS in drinking water
lol. people have been predicting the end to natural resources like oil, gas, minerals, and ores for over 100 years now, but they keep getting cheaper showing that they are more abundant now than ever. go read about the Simon and Ehrlich wager where Ehrlich just got humiliated.
jnordwick··on DeskHop – Fast Desktop Switching
When I worked at Virtu we had all the desks on wheels, pull the plug and roll away. Even better than switching. We moved them around all the time.
jnordwick··on Talk Python to Me: #442: Ultra High Speed Message Parsing with Msgspec
i wouldnt call it ultra high fast. its kinda quick, but still not close to what you can hand write.
jnordwick··on Raku: A language for gremlins
Raku is what you get when you mix APL and LSD.
jnordwick··on Show HN: State Trooper – Tiny, no frills state machine for Go
I've written 2 in C++ for different projects at companies State Farm and State of Decay. I'm trying to write one that kind of inverts things and calling it Enemy of the State.

But yes, his name pisses me off because I didnt think of it either.

jnordwick··on Ask HN: What are some of the most elegant codebases in your favorite language?
arthur whitney's famous first J interpreter.

https://www.jsoftware.com/ioj/iojATW.htm

The first version of KDB the timeseries database was written by arthur in C to bootstrap the K interpreter that was used to write KDB. It was 26 files, named a.c to z.c, none larger than a single page of C written with notepad.exe.

jnordwick··on Practical Libc-free threading on Linux
does xchg count
jnordwick··on Rust vs. Haskell
Rust's new claim is now that references isn't immutable, it's shared by default. There is no concept of immutable data in rust. All data is mutable in various ways and that is a product of the binding not the data, from the cell interior mutability eupphamisn to shadowing in the same frame: (`let x = 2; let x += y;` is valid even though x isn't defined as mutable. The mental gymnastics a rust parishioner has to go thrown to shout down other languages while theirs fills with the same concepts is growing by the hour.
← PreviousPage 3 of 34Next →