News for hackers. Stuff that matters.

jgalar

Re:Spain train crash: 'At least 10 dead' in high-speed collision on Wednesday October 28, 2026 @03:49PM (#50279876)
Absolutely braindead take.
> proved Electron-apps could have near native performance

I don't think that's true at all. Try running Zed or Sublime.

Re:AI is just unauthorised plagiarism at a bigger scale on Thursday May 21, 2026 @11:02AM (#48223950)
That's not the reason why I publish OSS. I also publish that software under specific licenses that impose specific obligations (e.g., making the source available to users and attribution being given to the original author(s)).
Re:Out-braking the ABS Myth [video] on Monday November 06, 2023 @11:47AM (#38164974)
My worst close-calls were a result of ABS engaging at very low speed. In all cases, I reduced the speed to 2-3 MPH approaching a snowy intersection, but the car refused to let the wheels lock and "sink" in the snow.

Instead, it's all too happy to drift into oncoming traffic at a glacial pace. It could be specific to the various Toyotas I have owned...

Re:Confusing Git Terminology on Thursday November 02, 2023 @12:24PM (#38115904)
In my experience, having to explain a software's design in plain English often reveals that some aspects were poorly thought-out in the first place.
To provide some context for this release announcement, the LTTng documentation has a nice intro to tracing and an explanation of how LTTng relates to other Linux tracers.

https://lttng.org/docs/v2.13/#doc-nuts-and-bolts

Re:Initial M1 support merged into Linux SoC tree on Friday April 09, 2021 @11:12AM (#26751518)
That's not true.

For example, the microphone of the X1 Carbon 7th generation still doesn't work out of the box. You need to blacklist a handful of kernel modules and edit your PulseAudio configuration to force the loading of an ALSA source hooked to the correct device ID.

The Arch wiki has an article cataloguing issues and workarounds (with various degrees of success) for every generation of the X1.

Re:Remove first 300M lines from 700 GB file on 1TB disk on Tuesday September 22, 2020 @11:36AM (#24555733)
I would guess memory map the whole file, then do the equivalent of:

memmove(beginning_of_file, beginning_of_file + 300_m_line_offset, file_size - 300_m_line_offset);

Re:Bitoduc: A French dictionnary for CS related words on Wednesday July 29, 2020 @10:59AM (#23987370)
We have very different experiences; I hear baladodiffusion (or balado) very often in Montreal.
Re:Bitoduc: A French dictionnary for CS related words on Wednesday July 29, 2020 @10:51AM (#23987283)
I'm from Montreal. It's not "chambre-a-montrer", it's "salle de montre". Also "coussin-a-gonfler" is "coussin glonflable".

As for computer-science related words, I think the OQLF (French Language Office) does a great job overall. "Courriel" (e-mail) is one of their best contributions and is used regularly.

Re:O(n^2), again, now in Windows Management Instrumentation on Monday December 09, 2019 @04:09PM (#21746610)
It's very ugly, but at least it doesn't seem to limit you to 15 characters like on Linux (prctl/pthread_set_name_np).

That limit makes it pretty hard to provide meaningful identifiers in a non-trivial application.

Re:Help me ask why you didn't just on Tuesday December 03, 2019 @08:42AM (#21692141)
Yes, and they will also move the goal posts when you explain why their solution doesn't work.

I feel there is something missing in this whole discussion and that's the question of unsolicited advice. I don't think anyone will feel insulted if the j-word comes out after they have asked for help on a problem.

On the other hand, It's hard not to feel like that question is condescending when it is unsolicited.

k8s feels much more like an effort to commoditize this space through standardization. It's a pretty common business strategy [1].

[1] https://www.gwern.net/Complement

Re:Linux: Introduce restartable sequences system call on Thursday June 21, 2018 @05:12PM (#17369332)
Full disclosure, I work on LTTng and a 20% improvement is a huge deal to our users, so I'm certainly biased here.

As far as I know, the thread-local write only occurs if a rseq region is set. The added cost to a context switch seems essentially limited to a branch: https://github.com/torvalds/linux/commit/d7822b1e24f2df5df98...

The other benchmarks that were posted in the various threads leading to this merge looked fairly impressive to me.

Of the top of my head, jemalloc benefited a lot from this patchset, and not just on the run-time front: https://lkml.org/lkml/2016/10/10/332

Re:Linux: Introduce restartable sequences system call on Thursday June 21, 2018 @04:39PM (#17369087)
Not necessarily. Applications may choose to retry a certain number of times and fallback to another mechanism if the critical section can't complete.

A problematic case that was brought up on LKML was the interaction with debuggers and unexpected page faults, see this comment: https://lwn.net/Articles/738119/

Re:Linux: Introduce restartable sequences system call on Thursday June 21, 2018 @04:17PM (#17368900)
Mathieu's (patch author) main motivation was removing atomic operation from the LTTng userspace tracer's hot path.

In that case, the per-cpu data is the 'reserve' and 'commit' counters that must be updated when the tracer saves an event to the per-CPU buffers.

Other uses that I'm aware of include memory allocators that maintain per-CPU arenas.

Re:Intel CEO resigns after relationship with employee on Thursday June 21, 2018 @11:26AM (#17365999)
Then why not ban friendships in the workplace? Surely they could result in the same kind of perceived biases (e.g. cliques).
I would guess cable video is multicasted once to many customers while online streaming has to be served one-to-one.

From the viewer's standpoint, the bandwidth usage is roughly the same, but the broadcaster and CDNs have a lot more data to deliver.

Even the kernel occasionally breaks interfaces. Case in point, FUTEX_FD was introduced in 2.6.0 and retired in 2.6.26 [1].

I don't think anyone working on glibc is intent on breaking user space. Sometimes it's just the most pragmatic solution.

[1] http://man7.org/linux/man-pages/man2/futex.2.html

Re:Apple: Chinese firm to operate China iCloud accounts on Wednesday January 10, 2018 @11:26AM (#16116233)
Pure speculation on my part, but could this be a way for Apple to segregate Chinese account data from the rest of their customers' data?

That would seem to limit the scope of what Chinese authorities can access.

Re:The Death of Flash and Rewriting 1.4M Lines of Code on Tuesday December 19, 2017 @03:25PM (#15963907)
Are there good DOM "bindings" available for other languages compiled to wasm?
Re:How to Improve a Legacy Codebase on Tuesday May 30, 2017 @12:34PM (#14446502)
IMO, it really depends on the context. If you are working with people who share your assessment of the current situation (both business and technical folks) and want to improve it, you'll have a great chance to learn from others' (and your) mistakes.

However, constantly putting off fires, under the gun, in horrible code bases, is probably not a good way to learn how to design software... It's a good way to learn how to debug and reason about problems, which is also a valuable skill to develop, though.