Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions

Submissions

comment 4y ago · link · parent

> look like a clear propaganda to me

This somehow tickled my funny bone. I mean, who can deny that you’re an expert on the subject?

comment 4y ago · link · parent

That’s a non-sequitur. If free will in the strict philosophical sense doesn’t exist (and I believe it might not), then we need to judge and blame to influence the decision process of current and potential offenders.

comment 4y ago · link · parent

I have no illusions about the effect, I hope my last sentences made that clear. But I disagree about framing the cause the way you do. Let’s say I somehow depend on you, and I want food and Pokemon cards, but you don’t give you enough money to buy both, just one of the two. And I go and buy the Pokemon cards. Is it really your fault that I’m hungry?

comment 4y ago · link · parent

I have two issues with this reasoning.

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 first heard of Effective Altruism, it was all about vaccines and mosquito nets — low cost solutions with clear, positive outcomes. I found that convincing, and even donated some money to some of the recommendations.

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

I mean, everything is easy to predict in retrospect. :) Personally, I’m a bit surprised that it has learned any connection between the letters in the generated image and the prompt text at all. I had assumed (somewhat falsely it seems) that the gibberish means that the generator just thinks of text as a “pretty pattern” that it fills in without meaning. For example, a recent post on HN suggested that it likes the word “Bay”, simply because that appears so often on maps.

comment 4y ago · link · parent

I agree.

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

It’s a different conversation from the dev side and from the sysadmin side, and neither might apply to you.

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

Oh, wow! I didn’t fully realize what was weird, but it’s very obvious once pointed out. It seems like “longish mechanical implement close to the face” is so strongly biased towards “bottle” that the AI has difficulty moving the telescope up to the eye level.

comment 4y ago · link · parent

Speculation is fun, if you’re aware that you’re not doing science.

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

> This exists since 2013.

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

If user = server administrator writing simple scripts, you are probably right. If user = a team of devs, I don’t agree. You often want to use new language features just to simplify a piece of code, and you don’t want confusing rules around when you can and can’t use them.

comment 4y ago · link · parent

The “neither” choice happened with Python 2/3 as well. The current re-emergence of Python as a machine learning/data science languages is basically a new trend. Long before that, before the Python 3 transition, there was a significant amount of buzz around everything from web frameworks to desktop GUI applications. The way I remember it, almost all of that attention was killed during the transition, when people tried Python and found a significantly lacking and confusing ecosystem.

comment 4y ago · link · parent

I hope we can agree that Python 3 was qualitatively different because all of your libraries had to migrate first.

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

Your last two paragraphs describe Rust’s process differently than I would in comparison to this suggestion.

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

Think about applications, not one-off scripts. It should be easy to always stay on the latest language version, with good tooling to migrate your code, and importantly, the ability to do it piece by piece. (Python 3 was all-or-nothing for the entire ecosystem.) Also, many migrations are trivial in practice, like renaming an identifier to avoid the new keyword.

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

I’ve written a nontrivial anount of Perl code in my life, admittedly almost none in the last decade. For all its obvious flaws, I always liked the language, and am happy to see it getting attention and moving forward.

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

A variant of your point three:

* 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

Any guess why Hetzner Cloud isn't visibly moving towards offering more managed services in general (the kind of stuff Digital Ocean offers, like databases, Kubernetes etc.)?

comment 4y ago · link · parent

That’s a good point. Rust’s cargo files have that feature as well. And I agree that surface syntax isn’t the main issue.

comment 4y ago · link · parent

Better in what sense? Syntax aside, I don’t see a substantial difference in terms of file content. I do see a substantial difference in terms of tool capabilities (like .NET/NuGet’s inability to resolve conflicting diamond dependencies).

comment 4y ago · link · parent

Some of the comments in that thread must come from people who are lucky enough to have never had to read or refactor any large, convoluted methods. Knowing that this particular bool flag isn’t being flipped thrice, 100 lines down, is a godsend.

comment 4y ago · link · parent

That’s one of the things that tangibly improved IMO: they removed the file list, so except still being ugly XML, the csproj is now very comparable to package.json or Cargo.toml.

comment 4y ago · link · parent

I’d be fine with semantics similar to readonly fields (and incidentally, “const” in JavaScript): you can’t reassign the variable, but the contained object can do what it wants.

To your last question: Yes, records are really nice syntactic sugar for classes that want to behave like values.

comment 4y ago · link · parent

I once experimented with something like that a few years back, when I was regularly using a WiFi that only allowed HTTP. It’s not hard to tunnel something like SOCKS over TLS over base64 over anything that allows sending text, including HTTP. Latency might be a lot worse than the special purpose chatbot though.

comment 4y ago · link · parent

I certainly found it bleeds over into real life, but still, fair point.

comment 4y ago · link · parent

I’m perhaps in a similar camp, years of experience during the .NET 4 era, a lot of TypeScript and Rust after that.

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

That’s an underappreciated technique, and I’m not sure why. Someone once remarked (verbally) in the context of a code review that they would need to run the code to fully understand it, to which I replied “Why don’t you?” The look on their face was priceless, first confusion, then enlightenment. There’s no law or invisible wall that prevents you from leaving that web-based diff viewer.

comment 4y ago · link · parent

I’m not sure what you’re suggesting here, but there’s no way to confuse the side of the political spectrum that actually cares about all human suffering with the one that cynically doesn’t.

comment 4y ago · link · parent

I feel you, I just don’t think it’s limited to this one issue. I too strongly identify with most, perhaps all of the left’s causes: universal human rights, fighting world poverty, peace, protecting the climate. The only problem is, the amount of intellectual laziness displayed by some of the louder advocates of that side political spectrum annoys me beyond belief. For those people, policies seem to be accepted or rejected purely on gut feel and symbolics, not honest analysis of the consequences or even whether they would actually help achieve the purported goal. I can’t be the only one who feels that way, so if there’s an organized “rational left” movement somewhere, please sign me up.
1
252627
51