9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
First, as a German (!), I always have a hard time with articles that claim bombing Germany in WW2 somehow wasn’t justified. What would have been the alternative? Leave the regime in power? Concede half or more of Europe? Shrug your shoulders and accept the industrial scale genocide? Note that almost the entire population was part of this murderous machine in some capacity, and to some extent willingly so. To have any hope of democratizing Germany at all, the defeat had to be total. I haven’t seen very credible evidence that this could have been accomplished with milder measures.
Second, there’s an important ethical difference between sanctions and strategic bombing. The attacker chooses what to bomb. With sanctions, the target nation can choose which sectors of their economy their limited resources keep going into. Yes, autocracies will reliably loot and starve their population for the benefit of the military and their political friends. But that’s still their choice, not ours, and I think that’s an important distinction in terms of the moral implications.
comment 4y ago · link · parent
When I checked back a few years later, the community seemed to be all about surviving the Rapture, I mean “Singularity”, summoning God, I mean the “Friendly AI”, and maximizing the happiness of the expected 10 to the trillion lives in Heaven, I mean the “Simulation”. I found all of that a lot less convincing.
There are several social reasons why this shift happened, but the root problem, to me, is utilitarianism taken to a dangerous extreme. Effective Altruism was arguably always rooted in some form of utilitarianism as a guiding principle. The problem is, the concept seems to have attracted some very logical, abstract thinkers who somehow didn’t realize when they started to lose contact with reality.
Note that all of this is just my opinion, but here’s my point. I find it always problematic to assign a numerical goodness value (“utilons”) to a human life, though I concede that it can work as a heuristic in small, non-extreme cases. What definitely doesn’t work is to take that number, multiply it by population sizes and claim to have solved ethics. No matter how much you wish it was, ethics is simply not a subbranch a mathematics. To put it very bluntly: That road has been traveled before, and it leads to genocide.
To be clear, this isn’t hyperbole. I won’t link any sources to limit exposure, but you can find articles by self-proclaimed altruists who argue that it’s better to lose a billion lives to climate change than to delay AI research by even one year. The suggested reason being that delaying the Ascent into Heaven — I mean the “Upload into the Simulation” — costs humanity a collective 10 to the gazillion utilons, compared to the mere billions of utilons potentially lost to the climate catastrophe. Just think about the implications.
comment 4y ago · link · parent
comment 4y ago · link · parent
Just FYI, for compatibility reasons, the .NET runtime uses the .dll extension for all libraries, even on Linux. Despite the extension, these files aren’t true Windows DLL files. They might have a stub PE header (not completely sure), but otherwise, they only contain what’s called Intermediate Language code that has to be JIT compiled by the runtime. The principle is similar to .jar files in Java, in case you’re familiar with those.
The .NET toolchain has a mode where it bundles all dependencies (.dll files) and your code (more .dll files) together with the runtime for the target platform (for example, Linux) into a redistributable directory. I think that’s what the OP is referring to.
comment 4y ago · link · parent
As a dev, containers allow you to care a lot less about what’s installed on the server and in which version. You’ve already solved that in a different way for your setup, which is fine. I’d say the trick in your case isn’t the DLLs specifically (I’m not sure why you focus on that aspect), it’s the fact that .NET allows you to create a standalone application, including (in modern times) the .NET runtime. If that’s all you need, you’ve already minimized your dependencies on the OS, and you’re unlikely to benefit from using containers.
However, if you need anything else on the server (another runtime, a database server, a mail server), Docker could still help. Having the whole tech stack pinned in version control is really nice, and having the ability to make any changes to one’s setup at whim is very liberating.
For admins, there’s a different advantage. Especially when multiple technologies are in use somewhere, containers are a standard interface to host any kind of server application the same way. You don’t need to know or care that one technology just copies a directory, the other one requires a specific configuration of Apache and the third one requires setting up an extra cron job — just start the container and you’re done.
But it’s always important to remember that there’s no shame in not using a technology that HN has deemed cool, particularly if it doesn’t solve a problem you have.
comment 4y ago · link · parent
Another fun theory I’ve read is that the piece was called “Für X” for different values of X at different times.
According to this theory, Beethoven intentionally didn’t publish it so that he could continue to use the same piece to impress different women, “Look what I wrote for you”.
Efficient.
comment 4y ago · link · parent
Good to know, but maybe it’s not my fault that I assumed an official post by the Perl Steering Committee on perl.org would show the best solution.
> Exists. Wouldn't be Perl if one hadn't the choice between multiple solutions.
That’s great, but you might notice that you’ve given me, who is new to these approaches in Perl, exactly no information on where to start.
> It is evident.
Yes, I was very transparent about the extent and recency of my experience. Luckily, that combative attitude to a mostly interested/positive comment isn’t representative of the Perl community as a whole, or there really wouldn’t be any users left.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Now, your new argument depends on how hard it is to migrate a single file. If that’s sufficiently easy, you simply do it. Migrating to the last Rust edition, I had to fix maybe a handful of things in an entire crate; most files didn’t have to be touched at all.
comment 4y ago · link · parent
First, significant new language features are introduced all the time, even in stable, all of them enabled by default (indeed, there’s no way to turn them off).
Nightly’s #![feature(…)] is strictly for experimental stuff that is buggy and/or will change until stable release. I’m sure you know this, but all of those are intended to be backwards compatible! I think that’s a big difference.
Incompatible changes in Rust never happen with “features” (as you know, stable doesn’t even have those), but only with “editions”. The goal of an edition is to carve out a large chunk of future design space, like introducing some keywords for planned features, or rarely, fixing really annoying inconsistencies that require a breaking change. They feel a lot more proactive (we want to do this, we need an edition) than retroactive.
comment 4y ago · link · parent
What this gives you is high confidence that when inserting a few lines somewhere, that fancy new for loop simply works. No need to scroll to the top if the file and remember which exact release of the 27 in the last year introduced the feature.
comment 4y ago · link · parent
Having said that, I think this might be too fine-grained.
First, opting in to an experimental feature could be a one-liner, “use experimental feature ‘try’” or similar. There’s no point in punishing your valuable beta testers beyond that with a second line that’s entirely redundant with the first one.
The larger problem is the versions. This basically requires someone to update their script headers all the time if they want to keep getting new features. Probably not much of a problem currently, but might be if releases get more frequent. I personally like the “edition” concept of Rust a lot better: get over with all necessary breaking changes in one swoop, but then begin a new (hopefully long) era of backwards compatibility. That makes it easier for users to maintain their code, is probably easier to implement, and also easier for users to learn, since there are fewer sets of rules.
Lastly, I hope they also focus on tooling around installation. One paradoxical problem with modernizing Perl is its historic success: every variant of Linux or Unix already comes with an ancient version of it. I know many experienced Unix people hate this trend, but there’s a reason some of the most actively evolving language ecosystems install more and more of their binaries into the user’s home directory. Maybe that’s already the case for Perl, I wouldn’t know.
All that said, I’m not following Perl that closely anymore. These are just some really quick observations about very complex topics. I don’t claim to know nearly as much as the people who made these decisions, and it’s great to see that things are happening.
comment 4y ago · link · parent
* Avoid inventing new categories of notifications. When you have to, don’t default the new category to opt-in for users who have opted out of the closest existing one. Two rounds of notification whack-a-mole and your app is getting uninstalled.
comment 4y ago · link · parent
To your last question: Yes, records are really nice syntactic sugar for classes that want to behave like values.
comment 4y ago · link · parent
comment 4y ago · link · parent
Recently, I went back to C# for a smaller project. The .NET ecosystem certainly has its advantages compared to the “wild west” of NPM, which includes Visual Studio/JetBrains Rider.
My main problem was that the language feels so dated at this point. Why can’t I make local variables immutable? Why are there still no algebraic types? Why do the new nullability rules feel so inconsistent and tacked on, with “String?” and “DateTime?” behaving completely differently?
I realize not everybody cares about these “modern” features as much as I do, but once you’ve wired your brain to think about program composition in a way that simply feels better to you, it’s very frustrating to go “back”.
.
Edit: It’s not like the C# team is unaware of or in any way against these proposals. There just seems to be little visible progress:
Algebraic types: https://github.com/dotnet/csharplang/issues/113
Const locals: https://github.com/dotnet/csharplang/issues/188
comment 4y ago · link · parent
comment 4y ago · link · parent