reacweb

Joined 15 years ago

Karma
2,177
Submissions
929
Member since
Dec 20
I love perl, but I am strongly convinced that strong typing is mandatory for code maintainability. [email protected]
View on Hacker News

Recent submissions

Comment · 3 months ago
Generate code using LLM on a small project, then copy manually toward your big project. This reduces the context (and the cost) for the LLM and gives you many small projects where you can experiment ideas with more agility.
Comment · 3 months ago
Works perfectly fine with firefox snap ubuntu 152.0.4. I can select mic from one web cam and image from another. Is there somewhere a technical description of how they have used API to implement this ? Open sources ?
Comment · 4 months ago
It is an Azure (and WSL) specific Linux based on a general-purpose Linux (fedora). Having this general-purpose foundation will give access to many packages.
Comment · 5 months ago
My first job in 1994 was using RDB, very soon updated to RDB-Oracle 6 that was very compliant with my book about sql 92. I learned SQL during my studies, so my queries based on joins naturally performed well, unlike the nested SELECT statements in the legacy code. I learned to tune performances. After that, I've encountered Oracle with its share of non-standard syntax and behavior. Now, when I build a backend (flask or fastapi), my CLAUDE.md contains "use sqlite without sqlalchemy" so that I can understand how data is accessed and check that there is no hidden query inside a loop. When the SQL queries generated by AI become unreadable, it’s a sign that the system is no longer functioning properly. In my view, SQL is a good way to maintain control over an application that is largely generated by AI.
Comment · 6 months ago
I think the current intellectual property system is flawed. Books are knowledge, and we shouldn't be able to limit the spread of knowledge. I imagine that books could be sold at the cost of printing, and there could be a QR code inside so that readers could freely donate money to the author if they enjoyed the book. Strangely enough, I imagine that with such a system, authors would be better paid.
Comment · 6 months ago
IMHO, Ubuntu is trying to gain market share by targeting non-experts — making Linux simple enough for normies and casual users. Casual users are generally less likely to mess things up on Ubuntu than on Windows.
Comment · 6 months ago
I think power users are not the main target of Ubuntu.

I have put my parents on Ubuntu (gnome) in 2013 to replace windows XP. My mother is 88 now. I think it is the perfect fit for her (dad is dead years ago).

I use ubuntu gnome because tweaking my computer is not where I want to spend my time. YOLO. Using a "mainstream" desktop that can be explained to "non specialist" has its benefits. I accept to suffer some annoyances and there is always a way to fix the most annoying ones by sacrificing time.

Comment · 6 months ago
I suggest

if a.abs()+b.abs() >= (a-b).abs() * 2f64.powi(48)

It remains accurate for small and for big numbers. 48 is slightly less than 52.

Comment · 6 months ago
I was student between 1990 and 1993 and Ada was the main language. Compilation speed was not an issue. I remember that Eiffel was very slow to compile, but not Ada. Between 1994 and 1999, I have worked with Ada on Vax machines. The full recompilation took 2 hours because the machine was slow, not because of the language. Other languages were similarly slow (pascal, C). C was slow because of the lack of precompiled headers (many headers had to be parsed many times). With Ada (alsys ada), there were "libraries" that were black boxes directories containing object code and already parsed package specifications. Between 1999 and 2002, I have handled projects in Ada, C++ and Java. C++ was slightly slower than Ada (slow link). Java was a lots faster. Nowadays, Ada compilation is faster than C++.
Comment · 8 months ago
Yes, the slogan "America first" is a forerunner of the worst kind of imperialism.
Comment · 8 months ago
Yes, before https://en.wikipedia.org/wiki/Eternal_September

At that time, there was almost no spam because we could report them to abuse@domain...

There was no firewall in front of our campus and we were using rlogin to connect outside. I used export DISPLAY from Brest to Paris (to use xdvi that was not installed locally).

IMO, the security (ssh and killing rlogin) is the main change that is a really useful progress.

Comment · 8 months ago
make 2>&1 | tee m.log is in my muscle memory, like adding a & at the end of a command to launch a job, or ctrl+z bg when I forget it, or tar cfz (without the minus so that the order is not important). Without this terseness, people would build myriads of personal alias.

This redirection relies on foundational concepts (file descriptors, stdin 0, stdout 1, stderr 2) that need to be well understood when using unix. IMO, this helps to build insight and intuitiveness. A pipe is not magic, it is just a simple operation on file descriptors. Complexity exists (buffering, zombies), but not there.

Comment · 1 year ago
I am french. Everydays, we use DD/MM/YYYY or DD/MM/YY. Sometimes, I encounter YYYY-MM-DD, for example at the beginning of a document reference or in a file name. For me, it feels natural and I have no issue to make this switch mentally. The only problem I encounter is in english: MM/DD/YYYY. Hopefully less and less people are using this insane order.
Comment · 1 year ago
It is just a cheap chinese usb/serial adaptor used to plug the original serial cable of the dock. Nothing special.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton