HNHacker News
TopNewBestAskShowJobs

Blikkentrekker

1,434 karma · joined December 9, 2020

submissionscomments
Blikkentrekker··on No Semicolons Needed
The issue is that it's a special case that acknowledges where there are cases where the indentation level it logically requires isn't what programmers find pleasant, there are many more, that just don't have that special case, so it forces indentation that's unpleasant and unintuitive.
Blikkentrekker··on No Semicolons Needed
That's just because most languages go by braces and have optional intendation that is just ignored by the compiler.

I'd reckon that in a language where stuff is done by indentation but optional braces exist that are just ignored so many errors would also have been caused by braces being misplaced by the programmer to queue other programmers who thought some scope happened as a consequence but the compiler disagreed due to the indentation, which by the way was caused by tabs and spaces being mixed in the code and it not properly showing up for another programmer with tab with set differently.

Blikkentrekker··on No Semicolons Needed
Functional hardly matters Haskell has plenty of indentation which is by the way interchangeable with `{ ... }`, one can use both at one's own pleasure and it's needed for many things.

Also, famously `do { x ; y ; z }` is just syntactic sugar for `x >> y >> z` in Haskell where `>>` is a normal pure operator.

Blikkentrekker··on No Semicolons Needed
I like how Haskell does it. One can do both but not mix, as in either indent or use `{ ... }`.
Blikkentrekker··on No Semicolons Needed
The issue is that you find you very often want to break those roles. Python basically has `elif` because `else if` would make each branch nest one level deeper which isn't what one wants, except Python uses exceptions for flow control so you find yourself having to use `except ... try` as an analogue to `else if` but not `excetry` exists to do the same and stop the indentation.

There are many other examples. It exists to give people freedom. Also, while humans only go by intendation it's very hand for text editing and manipulation without requiring special per-language support to move the cursor say to the nearest closing brace and so forth.

Blikkentrekker··on Wayland set the Linux Desktop back by 10 years?
> Indeed. And what many seem to fail to notice is that at it's core it's exactly the same mistake being made all over again. A mistake that I've seen so many times over and over again, increasingly commonly in recent years, which can be summed up thusly:

Yes, just as the idea of “We will start anew because the codebase is a mess and this time we'll make it clean.”. 10 years ago, whenever I saw something like that I would've said that person has zero actual experience working as a programmer. I've seen teams go through this multiple times but at the end, the new codebase when all the features are added is just as much of a mess as the old, at best a slight improvement. People who say this just underestimate the scope. But these people have experience. They're just optimistic and full of wishful thinking maybe?

> See, I don't think you're giving them enough credit. Or is it too much credit? These are not stupid people. I say they do understand this, they just don't care about your time enough to do anything about it.

I disagree. I've talked with many of those people both online and in real life who don't understand that for most people time has value. They really just don't get it. They're not stupid; they just don't really think about it that way and don't have much to do in their lives aside from this one specific hobby.

Blikkentrekker··on Wayland set the Linux Desktop back by 10 years?
Yes, that, or the “Use case for <extremely useful and obvious thing>?” memes. Ebassi once got father angry at me after finding out that I did not run Polkit or a system dbus on my system and alledged that I must not know what they do because everyone would want that.
Blikkentrekker··on Wayland set the Linux Desktop back by 10 years?
Well that's the issue with free software isn't it. In properitary software people work on what their boss tells them to work on which is decided by market research based on what people want.

Others said in this thread that Wayland in many ways was more so trying to solve issues for developers than for users and that's true.

Blikkentrekker··on Wayland set the Linux Desktop back by 10 years?
> That said, we all enjoy the fruits of their labors ...

Well, we also enjoy the issues. When you talk to them they are extremely uncompromising in practice and extremely tribalistic. I think “tribalistic” is maybe a better word for what I feel is an issue. “Not invented here syndrome” reigns supreme in open source and in general it's full of extreme fanboys who aren't willing to admit anything is wrong with “their tribe” and aren't willing to acknowledge any issue whatsoever and defend everything to the death.

The opposite is also just as true though. Many of the users and figureheads will believe everything is wrong with “other tribes” and refuse to acknowledge any of the merits and good ideas.

Proprietary developers have no allegiance but to money and there's something to be said for that. They just work for a company because it pays them and will switch to another company when they get a better contract there and in many ways that makes far less loyal and thus level headed about many things when talking to them.

Blikkentrekker··on Wayland set the Linux Desktop back by 10 years?
“I guess you have to decide if you are a GNOME app, an Ubuntu app, or an XFCE app unfortunately. I'm sorry that this is the case but it wasn't GNOME's fault that Ubuntu has started this fork. And I have no idea what XFCE is or does sorry.”

Prophetic words were once spoken and mocked long ere.

Blikkentrekker··on Wayland set the Linux Desktop back by 10 years?
Not only that, the situation with Wayland also made me kind of afraid of the future of open source because it dawned on me that many of the figureheads in open source are actually simply put mentally unstable and extremely zealous and lack nuance. It didn't occur to me before but look at all the figureheads in free software: Theo de Raadt, Richard Stallman, Ulrich Drepper, Lennart Poettering, Linus Torvalds, Drew Devault. They are all kind of extremely uncompromising people who refuse to listen to reason with many of them even being known for vitriolic Twitter rants.

The issue is that free software is fundamentally a political thing and it seems to attract very political people who treat software like an ideology rather than a product who are out to wage war.

Blikkentrekker··on Wayland set the Linux Desktop back by 10 years?
The python 2 to 3 situation was a similar colossal mistake of honestly incompetent developers who really enjoy programming in their free time who don't understand that time is money for most people.

By comparison, Rust with its edition system understands this.

But this is the major issue. They don't understand that even if Wayland had feature-parity with X11. The simple fact that it works differently means that if I am to migrate I would have to rewrite a tonne of scripts that hook into X11 that just organically grew over time that I've now become dependent on for my workflow. It has to be substantially better and have killer features for me to switch and yes, fractional scaling per-monitor is that killer feature for many, but not for me, and the simple fact that XMonad runs on X11 and not on Wayland is a killer feature for others.

Blikkentrekker··on Wayland set the Linux Desktop back by 10 years?
It's really simple, then I have to use GNOME or KDE or any other thing that is on Wayland which I don't use. AwesomeWM, Xmonad, Fluxbox, OpenBox and many other interfaces just aren't on Wayland and have no intention to be because it just doesn't really do well what they want to and they don't feel like maintaining two versions.

The real issue with Wayland and “setting back” isn't what the article says, but just that like 15 years was taken just to get Wayland on semi-decent feature-parity with X11 during which time development on X11 came to a standstill. That time could've been used to improve X11 and it's still not real feature parity.

And part of it was just the devs refusing to believe that people needed those features. I talked with them around 2010-ish and about some of the things they cut out claiming that no one ever used them. These were things related to mouse acceleration that is pretty essential to video games and image editing, certain forms of screen capture, various things with fonts and color management that are essential to many professionals and they actually believed that no one used those things. Eventually they came around and added many of those things back in, in doing so basically making many of the initial security promises complete void again but so much time has been put in what isn't much of an improvement to justify the time spent on it.

Blikkentrekker··on 4Chan mocks £520k fine for UK online safety breaches
> What will get you in trouble in the UK is threatening violence against people or posting hate speech that encourages others to do so. But this is also true in the USA and in most countries.

The line is quite thin and ambiguous though. If they want to get someone they will and find that various remarks “encourage violence”.

Almost any opinion that isn't nice can be argued to encourage violence.

Blikkentrekker··on Vietnam bans unskippable ads
All that can be regulated though. In many jurisdictions, it's forbidden for lawyers or pharmaceutical companies to advertise their products with it being regulated what counts as an advertisement and putting oneself into the phone book or putting a big sign with “Lawyer” on one's practice is allowed but putting oneself into a magazine or on television is not.
Blikkentrekker··on Vietnam bans unskippable ads
Advertisement also more or less puts a wrench in the theory of capitalistic competition in that companies would be incentivized to create the best product for the lowest price supposedly. They're now just incentivized to create the best ad campaign which costs money and does not improve the product in any way.

Also, the existence of crippleware, where companies actually invest resources into removing features from a product is interesting. It would be interesting if we were to live in a world were both advertisement and crippleware are forbidden. It's already forbidden in many jurisdictions for various public function professions such as medical services or legal services so it's not as though it couldn't be implemented.

Blikkentrekker··on Moss: a Rust Linux-compatible kernel in 26,000 lines of code
> LGPL should only pose a problem if you explicitly want your program to be used with non-free software. And then only if said non-free software doesn't give you a way to rebuild it yourself, should you want to modify the LGPL program. (So not a problem for open-core or public-source projects, either.)

No, just if you want it to be used with anything that isn't that exact same GPL licence.

> Otherwise, when releasing your project under GPLv3+, you don't have to put blind faith into the FSF; you can designate a proxy which will decide whether the new version should be allowed for your project or not. This proxy can be yourself, or it can be a different organisation you choose to trust. Plus, I'm pretty sure the GPL allows you to make linking exceptions of your liking.

That's the same as just licencing under the GPLv3 and later retroactively deciding to also give the GPLv4 option when liking that licence. The issue is, what if you don't? Then your code can't be combined with any GPLv4 library.

The simple reality is that crates that have incompatible licences, and GPLv2 and GPLv3 are incompatible, cannot be used together in one distributed project without committing copyright infringement. The thing with MIT is that it's compatible with about every single licence out there.

Blikkentrekker··on Moss: a Rust Linux-compatible kernel in 26,000 lines of code
Copyleft doesn't work well with Rust's ecosystem of many small crates and heavy reliance on libraries alongside static linking.

If one library be GPLv2 and the other GPLv3 they couldn't be used together in one project. LGPL solves nothing because it's all statically linked anyway. And yes, one could licence under both under the user's choice but then GPLv4 comes out and the process repeats itself, and yes one could use GPLv2+ but people aren't exactly willing to licence under a licence that doesn't yet exist and put blind faith into whoever writes it.

Using anything but a permissive licence is a good way to ensure no one will lose your library and someone will just re-implement it under a permissive licence.

C is a completely different landscape. Libraries are larger and the wheel is re-invented more often and most of all dynamic linking is used a lot so the LGPL solves a lot.

Blikkentrekker··on Moss: a Rust Linux-compatible kernel in 26,000 lines of code
There are also so many G.P.L. violations and nothing is done about it.

I think a big issue is also that it's hard to show actual damages with this kind of copyright violation. It's obviously copyright violation but what damages are there really? Also, there are so many dubious cases where it's not clear whether it is a violation or not.

Blikkentrekker··on End of Japanese community
Which I feel honestly in part explains why so many prominent figures in Free software development seem to have some mental issues to be honest. They in a way remind me of that person who at one point was responsible for over half of all edits on the Scots Wikipedia.

Even the paid professionals often started to work for free and then were hired by some company and the reality is that someone who is good at something and willing to do it for free is either a very good Samaritan, or there is some other issue at stake and in the end prominent free software figures often have fairly heated public keyboard wars over things with each other and most of all seem strangely fiercely loyal tribalists who suffer from an extreme case of n.i.h.-syndrome.

Blikkentrekker··on KDE launches its own distribution
Yes, I'm well aware of that, Plasma can be installed on many distributions. How exactly is K.D.E. making their own software distribution benefiting the development of Plasma?

This really feels like they first decided they wanted to make their own distribution for no reason, and then went to search for the niche for it to fill which is the wrong way to do it. Usually someone, who typically does not do anything else at the moment, realizes there is a certain niche that needs to be filled and then decides to make a distribution that fills that niche.

Blikkentrekker··on KDE launches its own distribution
No, KDE does not need its own distro, that's the issue. They don't need their own method to distribute it which benefits no one.

The idea of a distribution for this specific purpose is best left in the hands of some organization with experience with this specific purpose, not KDE whose experience is developing desktop environments.

How exactly is it “awkward” for them and how exactly does distributing this in any way improve the development process of KDE? They can't even dogfood it obviously.

Blikkentrekker··on KDE launches its own distribution
It does I believe? I've never tried it myself but I've heard multiple voices say that once you go into the terminal the entire Gentoo stack is just there with portage, equery, qapps and such.

In fact, from what I understand it is in fact not really Gentoo based but Portage-based, as in they for the most part write their own ebuilds and software and from what I know have their own custom init system and display system that's not in Gentoo but they found that Portage was simply very convenient for automating their entire process. The claim that “gentoo is just Portage” is not entirely true, there's still a supported base system that's configured as offered by Gentoo but it's far more flexible than that of most systems of course, granting the user choice over all sorts of fundamental system components.

Blikkentrekker··on KDE launches its own distribution
That seems like a good niche to exist indeed and many people would probably misunderstand its purpose by it being called a “KDE distribution”. It would perhaps have been better if it were created by some independent group for this purpose and just happened to settle upon KDE as its interface, or rather offer multiple choices to be honest.
Blikkentrekker··on Reinvent the Wheel
Ehh, I always took the “don't reinvent the wheel” advice in context of “wheels” being very simple things that everyone can create but no one wants to spend time on. It's typically not really a learning exercise to say implement quicksort or some hash table; it simply takes time.

You will also rarely build a better implementation of these things than whatever is in the standard library or even some other library that already exists. If anything, it's better to, if one have a better idea, to contribute one's patches there.

Blikkentrekker··on GCC 15.1
The thing about writing standards is that if you write standards compiler writers vehemently disagree with, they will just not implement them, and they disagree with it because their consumers do. A standard typically documents what is already happening. This is why some languages call their standards “reports”. They investigate and document what the majority of compilers are currently doing and encourage the others to follow suit.

As for overflow, the reality is that most compilers simply assume it won't happen at this point. They do this because the consumers want it because it simply generates far faster code being able to assume that it won't happen. Yes, people often come with pathological examples to show why this is a bad idea of ridiculous optimizations being made no one expects because compilers assume it won't ever happen, but those are pathological, in practice it really comes down to loops. In many loops, compilers having to assume that loop variables can overflow in theory disables all sorts of optimizations and elisions and in practice they won't overflow and if they overflow that's an unintended bug anyway.

Obviously a a very basic example is a loop adding some counter value to a counter and stopping when the counter is past a certain value. Assuming that integers can overflow, and that thus adding a value can make the counter less than what it used to be in theory obviously disables many optimizations in streamlining the logic. Just in general, assuming overflow can't occur means being able to make the assumption that adding a positive integer to another integer will always produce a larger integer than the original, that is a very powerful assumption for optimizations to be able to make obviously, assuming that overflow can happen removes it that's why it's undefined behavior. Compilers are free to assume it will never happen.

Blikkentrekker··on GCC 15.1
I have to say, I've read the discussion this generated and it's a bit scary how no one seems to know whether type punning through unions is undefined or not in C, or rather, my conclusion reading it all is more so that many people are wrong and that is defined behavior, but some of the people who are wrong about it are actual GCC compiler developers so it can't be too easy to be right.
Blikkentrekker··on Show HN: I made a Doom-like game fit inside a QR code
That said, I wouldn't mind an upgrade to the standard of say say if the link be printed above the code in human readable form in some way, the reader would refuse to open it, or at least be configurable to refuse to open it if they not match.
Blikkentrekker··on Show HN: I made a Doom-like game fit inside a QR code
As far as I know the only form of code execution they support is by the URL datatype which carries the same risks as wel already mentioned anyway.
Blikkentrekker··on Show HN: I made a Doom-like game fit inside a QR code
It runs inside a web browser though. This is no different from visiting an arbitrary link and running whatever arbitrary code in the Javascript sandbox of that link and one already knows a q.r. code an take one to an arbitrary link.
← PreviousPage 2 of 34Next →