News for hackers. Stuff that matters.

unsafecast

Re:Revisiting KDE on Sunday January 15, 2023 @02:57PM (#34392663)
Sounds good! I don't use either anymore so I wouldn't know.
Re:Revisiting KDE on Sunday January 15, 2023 @02:01PM (#34392024)
What about having it listed with the actual name, but when you're viewing it in the program launcher you have a hint in gray? Something like this:

- Okular Document Viewer

Re:Revisiting KDE on Sunday January 15, 2023 @01:08PM (#34391480)
If I have two PDF viewers, should both be called "PDF viewer"? Gnome seems to love hiding the actual names (the gnome document viewer is actually called evince).
Re:Show HN: Hacker News Without News on Saturday January 14, 2023 @07:21AM (#34379715)
Why does it alternate between 2023 and 2013?
Re:Analog Chess – pieces are not constrained to a grid on Saturday January 14, 2023 @04:10AM (#34378669)
I end up using a checkers piece, since pretty much every board I've played on has them.
Re:Analog Chess – pieces are not constrained to a grid on Friday January 13, 2023 @02:23PM (#34372595)
You say underpromotion, but something people are surprised by is making a second queen ime. People sometimes assume promotion is actually "taking a captured piece back".
Re:The YAML Document from Hell on Thursday January 12, 2023 @07:03AM (#34352282)
Indeed, we're being too kind to you.
Re:Vim: ZZ and zz: Do you know the difference? on Monday January 09, 2023 @06:46AM (#34309292)
Hah, I thought I was the only one who lifts shift too late and gets :Wq.
Re:Modern C for C++ Peeps on Saturday January 07, 2023 @03:42PM (#34292538)
> Technically, int32_t is bad in that way, but we are not fooled by it.

Meaning? On my system int32_t is directly typedefed to unsigned int, absolutely no hidden pointers or conversions.

Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @09:34AM (#34274992)
What order are the bytes in 0xabcd intended to be used in? I don't see how making it 0x[ab, cd] would be ambiguous, it's the same assumption of reading left to right.
Re:No, You Can’t Manufacture That Like Apple Does on Friday January 06, 2023 @09:31AM (#34274947)
I think the iBooks were made like that.
Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @08:21AM (#34274289)
That applies to GLSL in general. I tried once to emulate that using C unions, but quickly realized that there's no solution for v.xz, v.xw, v.yw, etc.

You can write functions like xyz(v) and that works well enough. Even better if you have ufcs or methods.

Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @08:09AM (#34274202)
That's such a perl/raku thing, and I mean it in the best way possible.
Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @08:06AM (#34274187)
Of course it does - endianness interferes with any sort of numeric literal. Doesn't matter if it's hex, decimal, underscored, whatever.
Re:Bill Gates: "I'm literally losing sleep over Java" on Thursday January 05, 2023 @04:49AM (#34257815)
Not for them :)
Re:Show HN: Ov – feature rich terminal pager on Wednesday January 04, 2023 @09:02AM (#34245573)
Okay but why _not_ use go? You never gave a reason.
You missed a backslash before your asterisks :)
Re:sd: your script directory on Saturday December 31, 2022 @10:16AM (#34197127)
From what I can tell, sd has a feature that reads a comment or something from your scripts and displays them in the tab completion. So 'sd <tab>' would show a summary of commands and apropos.
Re:Should Small Rust Structs be Passed by-copy or by-borrow? on Saturday December 31, 2022 @09:13AM (#34196580)
> Edit: Actually since it's a structure, the calling convention is to memory allocate it and pass a pointer, doh. So it should actually compile the same.

Depending on calling convention, the structure may be spread out into registers.

Sublime.
This is the reason why I love it. Yes, it's not pretty, but you can hack anything into it really quickly. The fact that it's so 'informal' is the reason why it works so well imo.
In my own experience, it's just as fast if not a tiny bit faster, but what it's _really_ good at is customisability. With sublime I tried once to write a small plugin for gofmt and go vet (I don't remember what was wrong with the existent ones), and I gave up because it was more complex than I anticipated. With Lite XL I did it in 10 minutes and about 20 lines of lua code (though I did use this other plugin, it's a kind of support for linters).

Whatever I wanted to do it felt like I can just open the config and hack on it. Sublime never felt this way.

Re:Detecting the use of “curl | bash” server side on Tuesday December 27, 2022 @08:11AM (#34148290)
I think GP meant that it's two digits instead of one (you have to type 01, not 1).
Re:Detecting the use of “curl | bash” server side on Tuesday December 27, 2022 @05:36AM (#34147440)
How does compiling it yourself change anything?
This is so stupid and genius at the same time.
Re:The Reliability Trap: The crash of Emirates flight 521 on Saturday December 24, 2022 @12:06PM (#34118702)
The landing gear creates very high air resistances. Certain maneuvers are impossible to do with it down, you can't fly very fast, et cetera.
Re:The Reliability Trap: The crash of Emirates flight 521 on Saturday December 24, 2022 @12:04PM (#34118688)
That's a fair point. I guess attacking the problem from another angle helps then - simplifying the computer UI and minimising the number of situations where an alarm could be warranted in the first place.

But yes, this stuff is very complex and I'm (we're?) only judging this from the outside.

Re:The Reliability Trap: The crash of Emirates flight 521 on Saturday December 24, 2022 @04:48AM (#34115419)
But we can have both. Make the button yell at you if the circumstances make it dangerous to use it. The fact that they didn't know is a failure of the system, which should've let them know immediately that the button didn't actually do the thing.

Older »