HNHacker News
TopNewBestAskShowJobs

5e92cb50239222b

3,964 karma · joined June 7, 2021

Former "friend of the West" from the other side of the Iron Curtain. Left most English-speaking resources in 2024 after belatedly retaliating that our friendship is not welcome over there, and never really has been.

HN was one of the better places.

submissionscomments
5e92cb50239222b··on JDK 21 Release Notes
You're supposed to either await a Task, or to block on it (thus blocking the underlying OS thread which probably eats a couple of megabytes of RAM). It's a completely different system more akin to what Go has been using.
5e92cb50239222b··on JDK 21 Release Notes
I don't think .NET has virtual threads (async/await doesn't count), and it definitely doesn't have anything similar to ZGC/Shenandoah — two garbage collectors that provide sub-millisecond pauses with heaps up to the multiple terabyte range. You can also go completely pause-less on commercial JVMs from Azul.
5e92cb50239222b··on JDK 21 Release Notes
Some options for those who prefer to avoid the Oracle minefield:

https://adoptium.net

https://aws.amazon.com/corretto

https://www.azul.com/downloads

https://bell-sw.com/pages/downloads

Sadly, no-one has managed to package it yet, but we should get something in the next couple of days. Since 21 is an "LTS" release, major Linux distributions will provide a runtime pretty soon. Ubuntu backports them to old releases too.

5e92cb50239222b··on Lies my calculator and computer told me (1987) [pdf]
I don't know which system you're on, but GNU bc does not support this flag.

On the other hand, bash and zsh support this:

  bc -l <<<'(2/3) * 3 - 2'
edit: neither does busybox.
5e92cb50239222b··on Japan's Hometown Tax (2018)
Because you really don't want heavily polluting industries (oil refineries, chemical plants, steel mills, etc) close to a big city.
5e92cb50239222b··on What if OpenDocument used SQLite? (2014)
It is somewhat of a problem: the development team is very small, they don't take outside contributions (so nobody outside the core team really builds up expertise over time), and the vast majority of tests are proprietary. I hope they have a contingency plan just in case (some sort of a dead man's switch that publishes the test suite under a permissible license) as it would probably be quite difficult for others to maintain the same quality without those tests, or re-implement them in a reasonable time frame.
5e92cb50239222b··on What if OpenDocument used SQLite? (2014)
It's not just ntfs. I tested this a few months ago in a pretty unscientific manner using ~50 million files in one directory.

btrfs was unusable (not only that particular directory, but the whole filesystem became noticeably slower).

ext4 was ok. xfs didn't break a sweat. I don't recall any practical difference when compared against a nested tree like

  ├── aa
  │   ├── aa
  │   │   └── aaaaf3ee5e6b4b0d3255bfef95601890afd80709
  │   ├── ab
  │   └── ac
  └── ab
      ├── aa
      ├── ab
      └── ac
5e92cb50239222b··on How the Mac didn’t bring programming to the people
Sounds very much like my experience, except that I was using Delphi. Non-existent documentation (complicated by me not speaking English at the time), no friends or relatives using computers for anything other than office documents (and very few having or using them at all), no access to the internet, and a friendly neighborhood software store that sold "pirated" copies of Delphi 7 for something like $2. That was an excellent environment to start precisely for reasons you described: double click on any element created an event handler for its "main event", and you could take it from there.

But: Object Pascal/Delphi is a quite powerful language and you can write really complicated stuff with it, compiled into a relatively small statically linked executable that worked just about everywhere without the need to install anything. (300-400 KB binaries seemed large at the time, little I knew what awaited us 20 years down the line.)

The need to dig and learn everything yourself definitely had some impact and provided some lower level knowledge of things many newer developers don't seem to know or care about, but I very much prefer what we have today where you're not expected to learn to read what looks like ancient Egyptian from scratch to write a basic calculator. Good riddance to those times.

5e92cb50239222b··on Hyprland Is a Toxic Community
Sure, if you call that community. Bug reports or questions generally do not require mentioning your race, ethnicity, nationality or identity preferences. I've never done it and as a result never had problems with anyone¹. If someone actively drags politics of any kind into a purely technical discussion, and then looks surprised when some bigoted idiot blows his nut — well, that looks like a a completely made-up problem from my neck of the woods.

1: let me mention here that I come from an ethnic minority in my country and for reasons completely unrelated to this discussion am not welcome in many corners of the internet.

5e92cb50239222b··on Hyprland Is a Toxic Community
I have a lot of respect for Drew for the technical work he did, but it's difficult to take this seriously. Maybe because we come from very different cultures, I don't know. I've never felt the need for any "community" for my window manager of choice (which happens to be sway) and can't imagine what a "victim of harrasment" for such a thing would look like. If whatever the developer clique are doing (which are actually pushing the thing forward) works for them — great! I'd be just fine with it as a user.
5e92cb50239222b··on Stay Away from Politics
https://archive.is/MkKWo
5e92cb50239222b··on Lodash just declared issue bankruptcy and closed every issue and open PR
Or .map() as a for..of replacement. I always wanted V8/SpiderMonkey developers to make .map()/.reduce() "pure" in the sense of "optimizing away" the expression if its result is not assigned to anything, and see the world burn.
5e92cb50239222b··on Java 21 makes me like Java again
And it's still not as cross-platform as Java is, or pretty much all other tech stacks. FreeBSD and commercial UNIXen are not supported at all. If you prefer to develop on macOS or Linux (hi there), you don't get access to many Windows-only tools (mostly for debugging and performance measurement). Microsoft only cares about other operating systems to inasmuch as you can host the resulting application there, but really expects you to develop on Windows. Which makes sense... for them.
5e92cb50239222b··on Java 21 makes me like Java again
That feeling is mutual. I very much prefer boring Java or .NET developers who are all supposedly stuck in the 90s to hipsters chasing after the latest JS fad of the week.
5e92cb50239222b··on Java 21 makes me like Java again
They didn't. A proper fix would require getting rid of null altogether in favor of ADTs or something similar. I work with C# daily and nulls can still slip through the cracks, although it's definitely better than @NotNull and friends.

I haven't worked with Kotlin in a while, but IIRC their non-nullable references actually do include runtime checks, so you cannot simply assign null to a non-nullable and have it pass at runtime like you can (easily) do in C#.

5e92cb50239222b··on Libsodium: A modern, portable, easy to use crypto library
For C/C++ projects that use meson as the build system, there is an excellent way to manage (some, supported) dependencies:

https://mesonbuild.com/Wrapdb-projects.html

https://mesonbuild.com/Wrap-dependency-system-manual.html

meson will download and build the libraries automatically and give you a variable which you pass as a regular dependency into the built target:

https://github.com/qemu/qemu/tree/005ad32358f12fe9313a4a0191...

https://github.com/harfbuzz/harfbuzz/tree/main/subprojects

https://github.com/harfbuzz/harfbuzz/blob/37457412b3212463c5...

Or, if you're using proper operating systems, they're managed by the usual package manager, just like everything else.

5e92cb50239222b··on Meduza co-founder's phone infected with Pegasus
Yes, and I should write bug-free code, and doctors should never make mistakes. If you have any examples of a completely neutral news outlet that never made any blunders, I'd be very interested to know about and follow them. Until then, I see no point in comparing anyone against an unattainable ideal which can only exist in one's imagination. I try to correct for their biases by reading Kremlin propaganda (and US, and Chinese, and some others) and comparing what they are saying. Know of any better ways?
5e92cb50239222b··on Meduza co-founder's phone infected with Pegasus
Yeah, the last couple of years were really eye-opening for credulous idiots like myself.

https://en.wikipedia.org/wiki/Kaja_Kallas#Stark_Logistics_an...

5e92cb50239222b··on Meduza co-founder's phone infected with Pegasus
This can be applied to literally anybody. I've been reading them for many years (since their editor and most of their journalists were at lenta.ru — which they were thrown out of in ~2015 for daring to criticize the annexation of Crimea). They are not angels, but they have always at least tried to remain impartial and use relatively reliable sources of information. Many (most?) news outlets don't even try.
5e92cb50239222b··on Reasons to not use your own domain for email
I've been using several domains for years and it's a non-issue. Some of them are located in the worst TLDs possible: the cost free .tk and .cf. No delivery issues whatsoever because I use decent email providers and don't spam.
5e92cb50239222b··on Reasons to not use your own domain for email
Services like Fastmail provide clear step-by-step instructions on what you need to configure. Typically you need to add some DNS records (MX, SPF, DMARC, DKIM), and that's it. It sounds way worse than it is and it takes 10 minutes tops if you've never done it before, less if you know what you're doing.

Getting out of blacklists is you email provider's problem, not yours. I've never heard of any domain owner who is not hosting their own server run into this. I can see it happening if you use the same domain for your servers, one of them gets compromised and starts sending lots of spam. So you should probably avoid using your personal domains for your servers, and definitely skip crappy TLDs like .xyz, and you'll be fine:

https://www.spamhaus.org/statistics/tlds/

5e92cb50239222b··on Show HN: Firefox addon to quarantine a tab to use offline with private data

  $ bwrap --unshare-net --dev-bind / / bash
  $ curl google.com
  curl: (6) Could not resolve host: google.com
Or you could use firejail, or do it manually with `unshare`, or with any of the container runtimes (docker, podman).

https://wiki.archlinux.org/title/Bubblewrap

https://wiki.archlinux.org/title/Firejail

5e92cb50239222b··on You Don't Need UUID
You only really need this part:

https://amazon.com/dp/B09V3HZ8B5

5e92cb50239222b··on KSMBD Declared Stable – No Longer “Experimental” – In Linux 6.6
Same reason Western Digital sponsors btrfs development, or at least used to.
5e92cb50239222b··on Peredvizhnikov Engine: Lock-free game engine written in C++20
A bit more than that since Xbox runs Windows too.
5e92cb50239222b··on Chrome now tracks users and shares a “topic” list with advertisers
Google also could cut off Mozilla's funding in a heartbeat. Since their management is incompetent (but their engineers are awesome and I love them), they haven't done any serious attempts to diversify their sources of income, or at least to put some of that cash away for a rainy day. Firefox is just as dependent on Google as are any of the Chromium rebuilds. (I am writing this as someone who has been using Firefox since about 2006 non-stop, seeing its market share drop by a factor of ten in that time).
5e92cb50239222b··on Chrome now tracks users and shares a “topic” list with advertisers
Brave lets you change it (or remove altogether). I just did it before posting this to make sure.

  brave://settings/system/shortcuts
5e92cb50239222b··on On the 10th anniversary of the Snowden revelations
I think most of that happened well before 2021. And he may well have believed they were not going to invade — I totally believed that, because the alternative was just too depressing. Most of my friends, relatives and acquaintances (Russian-speaking, but not in Russia) were of a similar opinion.
5e92cb50239222b··on ZFS for Dummies
I switched away from ZFS on root after using it for about a year. There were no actual problems, but I could never get over the fact that it's so complicated underneath I have to relearn everything every time I do any sort of advanced maintenance.

For example, I had to move between SSDs which is an absolutely trivial operation with any other filesystem if you know your Linux well. It took me maybe three hours of work on ZFS because it brings its own environment and does everything its own way, so I had to remember and re-discover a lot of stuff. The system booted on maybe 15th try.

If you are fine with this, or you're not going to use it on root, or you are a FreeBSD user, it's an excellent choice for pretty much any task.

5e92cb50239222b··on The curl-wget Venn diagram
It's fine when you've read the man page at least once. If you just cowboy your way through every task, you'll never even be aware of what your tools can do. Which results in comments we've all seen: "I can't believe curl/Firefox/vim/readline/whatever can do something like that!" about something so trivial that every good poweruser/sysadmin has known it for decades (because it's in the man page).
← PreviousPage 3 of 34Next →