HNHacker News
TopNewBestAskShowJobs

ernst_klim

1,304 karma · joined April 5, 2017

submissionscomments
ernst_klim··on Go away Python
Tcc even supports that with `#!/usr/local/bin/tcc -run`, although I don't understand people who use c or go for "scripting", when python, ruby, TCL or perl have much superior ergonomics.
ernst_klim··on Kidnapped by Deutsche Bahn
That's ridiculous. DB is not even trying to become profitable, not is there any evidence that it's sole shareholder, aka the government, sets it as a target.
ernst_klim··on Kidnapped by Deutsche Bahn
That's true, but at this point I would prefer slow but steady over being disembarked at random *dorf or standstill in a middle of nowhere with zero signal and no clue when we'll get back on track.
ernst_klim··on Kidnapped by Deutsche Bahn
> Twenty minutes late is normal in the UK.

My biggest gripe with DB is not that it's late, but that it quite often cancels the trains. If you decided to go by regional trains with 1-2 hops instead of direct (bc you can go much cheaper with Deutschlandticket), there's a high chance that at least one of your trains get cancelled and things will not go according the plan.

ernst_klim··on Kidnapped by Deutsche Bahn
> Most of the whining I've heard about DB boils down to inconvenience in situations nobody could have predicted nor helped

Somehow doesn't happen in most other countries I lived. These things are easy to deal with with a bit of redundancy, which as I've heard is lacking in Germany these days.

I've had much better experience with trains in Russia despite much harsher weather conditions, much larger distances and much older cars. This problem is absolutely fixable, just let the trains go around problematic sections with redundant routes.

ernst_klim··on Leaving the U.S. for the Netherlands
Better explain to me how to get to the USA.
ernst_klim··on Revisiting "Let's Build a Compiler"
> Rather than getting stuck in front-end minutiae, the tutorial goes straight to generating working assembly code, from very early on.

I think this is important and for a more sophisticated compiler design I find Ghuloum approach very appealing [1]. I.e. build a very simple subset of the language from top to bottom and then grow the meat gradually.

The really great book following this approach I've discovered recently was [2]. Although I find both C and x86 not the best targets for your first compiler, still a very good book for writing your first compiler.

[1] http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf

[2] https://norasandler.com/2024/08/20/The-Book-Is-Here.html

ernst_klim··on Over-regulation is doubling the cost
Berlin, London, Amsterdam, Stockholm all have it.
ernst_klim··on Europe is scaling back GDPR and relaxing AI laws
At this point I think it's utopic. Meta has an army of lawyers, they will optimize and adapt.

But it's really hard to tinker as a single hacker when a German legal troll firm can come for you for linking Google fonts on your web page (i.e. transferring IPs so breaching privacy)

ernst_klim··on Europe is scaling back GDPR and relaxing AI laws
> But when we talk privacy and personal data there should be no gray zone.

It took me to move to Germany to figure that privacy is a spectrum, and I, despite being a crazy on privacy and security, actually don't want that much.

I've been to a German factory where robots could not distinct between humans and objects bc Datenschutz.

My colleagues had 3 bikes stolen in a week bc we have no CCTV cameras.

Privacy definitely has costs, and not only for business, but for regular people in daily life. It should, as anything, be balanced against costs of doing business, people security concerns.

Same goes for security: few private cctvs are ok, massive coordinated surveillance and chat control not ok. Everything is on spectrum and is a trade off.

ernst_klim··on Linux mode setting, from the comfort of OCaml
> But doubt it'd have proven any worse than OCaml

Unlike Perl, OCaml is AOT compiled in a very efficient machine code, has a good static type system and has a good concurrency support. Both are not very mainstream.

ernst_klim··on GNOME 50 completes the migration to Wayland, dropping X11 backend code
They are not planning to go Gnome 4, hence Gnome 3.40 became 40. Just like Emacs went from 1.12 to 13.
ernst_klim··on Work after work: Notes from an unemployed new grad watching the job market break
> I think use the time to network with real people

It kinda doesn't work these days. One of the points of DEI was to eliminate the nepotism hiring (and it's kinda good if the hiring wasn't so broken), so these days referrals don't mean shit unless you're referred by someone high-ranked enough.

I've literally seen people being autorejected after being referred by team-leads these days.

ernst_klim··on Why I love OCaml (2023)
TBH I think it's rather a post-hoc rationalization of why the language is not popular.

> there's multiple standard libraries

Scala has a far more fragmented ecosystem with Cats, Scalaz, Zio and Akka. C++ and Java have a bunch of stdlib extensions like boost, Guava, Apache Commons etc.

> many documents are barely more than type signatures

Can be said of most of Java, Kotlin, Scala, Erlang etc etc. Just compiled javadocs, sometimes with a couple of unhelpful lines.

> data structures aren't printable by default

Neither they are in C++

I think the real reason it's not popular is that there are languages which solve more or less the same problems of system programming but look far more familiar to an avg. programmer who was raised on C++ and Java.

ernst_klim··on Why I love OCaml (2023)
> I'd like to hear some practical reasons for preferring OCaml over F#

Bigger native ecosystem. C#/.net integration is a double edged sword: a lot of libraries, but the libraries are not written in canonical F#.

A lot of language features F# misses, like effect handlers, modules, GADTs etc.

ernst_klim··on Pain Points of OCaml
Format is part of OCaml stdlib. You can write formatters for it manually.

Derivers are a library yes, it's pretty widespread if you need derive functionality, and it can derive basic functions. Proper link:

https://github.com/ocaml-ppx/ppx_deriving?tab=readme-ov-file...

ernst_klim··on Pain Points of OCaml
> there is no equivalent to Java's toString or Rust's #[derive(Debug)]

There are devivers and a Format module for pretty printing.

https://github.com/ocaml-ppx/ppx_deriving

https://ocaml.org/manual/5.4/api/Format.html

ernst_klim··on TurboTax’s 20-year fight to stop Americans from filing taxes for free (2019)
Citation needed.

In Germany tax-prep industry is huge, there is a huge network of tax consultants plus paid online services like taxfix and smartsteuer.

The only countries I lived which didn't require you to declare the taxes were Russia and Georgia, mostly because 13% and 20% flat tax rate respectively.

Any country which does have complicated progressive tax system would require you to declare taxes at least at some cases.

ernst_klim··on F-Droid and Google’s developer registration decree
In theory. In practice Germany requires your private non-commercial web page to have Impressum and there is an army of legal trolls who would destroy you for not having one.

I guess the same will happen with signed apps.

ernst_klim··on America's top companies keep talking about AI – but can't explain the upsides
> the amount of time they spend to actually make the agent do the work usually outweighs the time they’d have spent just building the feature themselves

Exactly my experience. I feel like LLMs have potential as Expert Systems/Smart websearch, but not as a generative tool, neither for code nor for text.

You spend more time understanding stuff than writing code, and you need to understand what you commit with or without LLM. But writing code is easier that reviewing, and understanding by doing is easier than understanding by reviewing (bc you get one particular thing at the time and don't have to understand the whole picture at once). So I have a feeling that agents do even have negative impact.

ernst_klim··on Baldur's Gate 3 Steam Deck – Native Version
I'm not sure this is true tho.

The games by Loki Software are still running great for me. It's a matter of skill and discipline. SDL, OpenGL and alike are very stable.

The problems start when developers start to use lots of small third-party libraries and depend on particular versions of them, but IIRC on Windows it's also solved by simply shipping all the libs with the game.

ernst_klim··on Basic Social Skills Guide
Then I don't understand what you are arguing about. If you're neurodivergent, you would always require self awareness and masking, faked as op rightfully stated. You could never natural, no matter what circumstances were.
ernst_klim··on Basic Social Skills Guide
You severely underestimate the biological side of things regarding social interaction. Neurodivergent people are what we are not just bc "surroundings made us so"
ernst_klim··on Germany creates 'super–high-tech ministry' for research, technology, aerospace
> Not sure how Germany is actively killing innovation to be honest

By many things at once: Datenschutz, (over- and premature) regulations, bureaucracy, laws favoring old ways (e.g. broadcasting licenses for streamers), active sabotage from workers who don't want to learn things (and can't be fired) etc.

But all stems from risk averseness and active unwillingness to learn new ways.

As you say, (some) things did happened, but way too slow and way too little. Compared to its peers or especially developing countries German Digitalisierung is a joke, a not so funny one.

ernst_klim··on Germany creates 'super–high-tech ministry' for research, technology, aerospace
Germany is actively killing innovation. I propose to stop for starters.

Tho when the median voter is 55 and national motto is "that's how it was always done" and "Pensions are secure" - I don't put much hope. I still remember the outcry when the digital health cards were introduced.

ernst_klim··on Germany creates 'super–high-tech ministry' for research, technology, aerospace
That's all good and well, but the very time you would try to start selling your tinkering, or, God forbid, hire somebody - that's where the hell begins.

Being a self-employed is a living hell in Germany, as well as receiving any money outside of employment. Esp. if money are small (but > than hobby money, 500 euro iirc) and don't justify the hurdle of dealing with Finanzamt, tax pre-payment, possible regulations with upfront Formulars etc.

ernst_klim··on Germany creates 'super–high-tech ministry' for research, technology, aerospace
I lived in Russia, Georgia, few European countries. Even in Georgia trains are way more punctual, than in Germany. Moscow metro works like a Swiss-clock compared to U-Bahn/S-Bahn.

Maybe what you are talking about is true for some very pour Asian/African countries, but many middle-income countries have more reliable public transportation, than Berlin. Not to mention developed ones and China.

ernst_klim··on Germany creates 'super–high-tech ministry' for research, technology, aerospace
> comprehensive public transportation infrastructure, universal healthcare without administrative bloat, and urban planning that prioritizes livability over speculation.

This can't be further from the truth. This is probably written by an American, and US is a very car-centric, but German infrastructure is a shitshow.

Also healthcare is absolutely stiffled by bureaucracy. I have a friend who is a cardiologist. He says that exactly half of his work time is paperwork. And not just paperwork, but German paperwork, where you manually type PDF fields one by one, then print, then sign, then scan and so on.

ernst_klim··on JetBrains Fleet drops support for Kotlin Multiplatform
> Unfortunately many new developers don't believe in powerful "power" tools anymore.

I have to use IntelliJ due to Kotlin codebase, but I'm still more of a fun of Emacs and I don't like Idea that much. I think IDEs somewhat lack the power that simpler tools have, which is automation.

One thing I miss from IntelliJ is programmability. That's why I still use Emacs on workplace for anything outside of Kotlin (git, grepping, note-taking etc). I even edit code in Emacs from time to time when it's easier to write a Lisp function which will batch edit code than doing keyboard macro.

Another thing I'm missing from IntelliJ is determinism. Everything is asynchronous, so the same combinations of actions can lead to different results, making automatisation painful.

ernst_klim··on The South Vietnamese pilot who landed a Cessna on a carrier to save his family (2019)
That's a strange historical revisionism in Ukraine. Traditionally, Rus history is considered to begin with Ladoga, then Rurik moved to Novgorod, and only later his successors moved to Kiev.

Saying that one true Rus is Kiev and not Novgorod or Moskow is rather a modern Ukrainian national myth. All and neither were true Rus.

← PreviousPage 2 of 21Next →