News for hackers. Stuff that matters.

Ontonator

Re:Bluetui – A TUI for managing Bluetooth on Linux on Wednesday November 05, 2025 @09:22AM (#45823156)
For Bluetooth, you could of course use one or both of the runes upon which the logo was based: ᛡᛒ
While I don’t disagree that houses have become less affordable, that graph is rather misleading. A graph of the ratio, as posted in one of the comments [0], would be more informative.

[0]: https://www.reddit.com/r/dataisbeautiful/comments/e1jrvw/com...

Re:Falkon: A KDE Web Browser on Saturday March 08, 2025 @08:38AM (#43300164)
Granted, as in “conceding a point”. https://en.m.wiktionary.org/wiki/granted
Re:Swift is a more convenient Rust on Friday September 06, 2024 @09:27AM (#41465996)
In the context of Swift, ARC is automatic reference counting: https://docs.swift.org/swift-book/documentation/the-swift-pr...
Do you have a specific reference for this? I’d love to know more.
Be careful: it’s been a while since I used C and I haven’t used much C++, but I think forward progress is only guaranteed by C++, not C.
I’m not sure it can loop indefinitely, but it can block (e.g. if the reader of the pipe is not reading from it and the buffer is full).
> Somewhat expectedly, gcc remains faithful to its crash approach, though note that it only inserts the crash when it compiles the division-by-zero, not earlier, like at the beginning of the function. […] The mere existence of UB in the program means all bets are off and the compiler could chose to crash the function immediatley upon entering it.

GCC leaves the print there because it must. While undefined behaviour famously can time travel, that’s only if it would actually have occurred in the first place. If the print blocks indefinitely then that division will never execute, and GCC must compile a binary that behaves correctly in that case.

Re:Hasanlu Lovers on Sunday September 03, 2023 @06:27PM (#37375202)
Would the DNA testing have revealed whether or not they were related, or would the DNA have been too damaged to work that out? (Of course, even if they were not related, they were still not necessarily lovers.)
Re:Few lesser known tricks, quirks and features of C on Saturday July 01, 2023 @11:48AM (#36551366)
Not relevant to C, of course, but Ruby supports something like this with `?a` being equivalent to `"a"` (both of which are strings, since Ruby doesn’t distinguish strings from characters). From what I’ve seen, it is recommended against in most styles, I assume because it is harder to read for most people.
Re:Show HN: C3 – A C alternative that looks like C on Friday July 08, 2022 @10:07PM (#32030640)
I disagree. There may not be a keyword required to refer to `struct`s specifically, but the namespace that is searched when resolving a symbol is determined by the syntax used to refer to it. For example, in C++, you cannot determine whether `a` is a type or a value in the statement `a * b;` without knowing how it is declared, and C also has this ambiguity once `typedef`s are involved. In Rust, there are no such ambiguities (unless there's something I've missed).
Re:Show HN: C3 – A C alternative that looks like C on Wednesday July 06, 2022 @05:21PM (#32006977)
I can’t speak for the others, but Rust definitely has separate namespaces for them. See https://doc.rust-lang.org/beta/reference/names/namespaces.ht...
Re:Write HTML Right on Friday June 10, 2022 @07:12PM (#31700376)
On the point about semicolons in JavaScript, the logic I’ve heard is that if you consistently use semicolons, you can have a linter warn you if there is an inferred semicolon, so you know if you have made a mistake. If you don’t use semicolons and accidentally produce code with an inferred semicolon that should not be there, then there is no way for any tool to warn you. (Well, no general way; in your example with the return, many linters would warn you about unreachable code.)
Both the C/C++ and Python extensions seem to be open source, but I think you’re right about the remote development one.

https://github.com/Microsoft/vscode-cpptools https://github.com/Microsoft/vscode-python

Re:The absurdity of renting a car will no longer be tolerated on Sunday December 26, 2021 @10:48PM (#29698925)
The longer someone is at the counter, the more likely you are to see them. You’re biased towards seeing the relatively few people who take half an hour.