HNHacker News
TopNewBestAskShowJobs

enriquto

14,003 karma · joined February 11, 2016

  just another C hacker
submissionscomments
enriquto··on Runit Linux: Complete Guide to Unix Init Scheme with Service Supervision
> Slackware is the best example - one release per decade means it is factually dead

As a daily user of slack I find your statement quite interesting.

If you run "-current", all your programs are up to date, and you get new releases much sooner than any debian variant.

enriquto··on State of Terminal Emulators in 2025: The Errant Champions
The table seems wrong. Xterm supports sixels.
enriquto··on X.org Security Advisory: multiple security issues X.Org X server and Xwayland
> X11's practical absence of any security mechanisms for user sessions means you should probably not run any kind of low-trust UI program

This has nothing to do with X11 or even UI at all. You should not run any low-trust program whatsoever (outside of a container). Any program that runs as your user can change your ~/.bashrc or any other file on your homedir.

Of course this is a feature that you want, for example when you edit these files with a text editor.

enriquto··on GNU Octave Meets JupyterLite: Compute Anywhere, Anytime
> The language itself is awful.

As a programming language freak, I must disagree... in what other programming language can you solve a linear system Ax=b in one line

    x = A\b
without any external libraries or imports, just with the base language?

I never used any official matlab "toolbox", but still love the language via the octave interpreter. It's so clean and straightforward!

enriquto··on The reason GCC is not a library (2000)
Still, we are discussing it almost 30 years after it happened. What alternative messaging system offers such openness and stability? I don't see anything other than publicly archived mailing lists.
enriquto··on The reason GCC is not a library (2000)
Oh, this is one of my favorite (and sad!) dramas in free software.

Five years later the main llvm developer proposed [0] to integrate it into gcc.

Unfortunately, this critical message was missed by a mail mishap on Stallman's part; and he publicly regretted both his errors (missing the message and not accepting the offer), ten years later [1].

The drama was discussed in realtime here in HN [2].

[0] https://gcc.gnu.org/legacy-ml/gcc/2005-11/msg00888.html

[1] https://lists.gnu.org/archive/html/emacs-devel/2015-02/msg00...

[2] https://news.ycombinator.com/item?id=9028738

enriquto··on Fastmail desktop app
As a happy paying user of fastmail, I'm beyond saddened that they are wasting my hard-earned money in this... what, electron bundle?

There is already a fastmail desktop app. It's called thunderbird. And there are many more, for all possible tastes!

enriquto··on PEP 810 – Explicit lazy imports
what is the point of this? you can just import inside function definitions:

    def antislash(A, b):
        from numpy.linalg import solve
        return solve(A, b)
thus numpy.linalg is only imported the first time you call the antislash function. Much cleaner than a global import.

Ignore wrong traditions. Put all imports in the innermost scopes of your code!

enriquto··on F-Droid and Google’s developer registration decree
please fix your ambiguous use of "their"... you mean google and apple, don't you?
enriquto··on Slack has raised our charges by $195k per year
> "Slack" didn't do anything. A uninformed sales process included (...)

I didn't hit anyone! An uninformed hand, that was at that moment attached to my body, did!

enriquto··on Slack has raised our charges by $195k per year
> a nonprofit teaching coding to kids

that's a perfect teaching occasion, then!

Kids: don't use proprietary services just because they are trendy. Prefer always open standards!

enriquto··on Is it possible to allow sideloading and keep users safe?
> Are you allowed to run whatever computer program you want on the hardware you own?

Yes. It is a basic human right.

> This is a question where freedom, practicality, and reality all collide into a mess.

No; it isn't. The answer is clear and not messy. If you are not allowed to run programs of your choice, then it is not your hardware. Practicality and "reality" (whatever that means) are irrelevant issues here.

Maybe you prefer to use hardware that is not yours, but that is a different question.

enriquto··on Uncomfortable Questions About Android Developer Verification
> The requirement of verification to side-load any app is fascist control.

Even the language we are using to describe the situation is problematic. Why do we say "side-load an app"? It should be just "run a program"!

An OS that doesn't let you run programs of your choice is laughable.

enriquto··on Google will allow only apps from verified developers to be installed on Android
> you fail to represent yourself as a basic human

You sound exactly like the people who condemned Socrates to death 24 centuries ago.

enriquto··on Show HN: X11 desktop widget that shows location of your network peers on a map
it's more like taking notes with pen and pencil, while other patrons of the coffee shop use an electron-based note-taking "app" on their macbooks that uploads each keypress to the cloud, helpfully adding a half-second lag
enriquto··on I used to prefer permissive licenses and now favor copyleft
The very name "permissive" licenses is problematic, because it steers the discussion towards the point of view of software middlemen, not of users.

From the point of view of a user, a copylefted software allows the user to do more things: the license grants them permission to see and change the source code of the software, no matter how they got it. With so-called permissive software, the user may be stripped of this permission by third parties.

enriquto··on My Lights Run on Bash
> I quickly jump to python instead of using Bash even for the simplest of scripts

You don't seem to respect the old, venerable, well-tested adage: "once your shell script becomes too complex, switch to a real programming language like python".

Or, the zen version (formally equivalent, but with quite a different tone): "once your program becomes sufficiently simple, turn it into a beautiful shell script".

enriquto··on Ancient X11 scaling technology
the problem is that there's no reasonable thing to do when the height of the terminal in pixels is not an integer multiple of the height of the font in pixels. Whatever "it" does, will be wrong.

(And when it's an integer multiple, you don't need scaling at all. You just need a font of that exact size.)

enriquto··on Ancient X11 scaling technology
> The scale factor can be something quirky like your 1.785, and the GUI code will generally make sure that things nevertheless snap to the pixel grid to avoid blurry results

This is horrifying! It implies that, for some scaling factors, the lines of text of your terminal will be of different height.

Not that the alternative (pretend that characters can be placed at arbitrary sub-pixel positions) is any less horrifying. This would make all the lines in your terminal of the same height, alright, but then the same character at different lines would look different.

The bitter truth is that fractional scaling is impossible. You cannot simply scale images without blurring them. Think about an alternating pattern of white and black rows of pixels. If you try to scale it to a non-integer factor the result will be either blurry or aliased.

The good news is that fractional scaling is unnecessary. You can just use fonts of any size you want. Moreover, nowadays pixels are so small that you can simply use large bitmap fonts and they'll look sharp, clean and beautiful.

enriquto··on 2048 with only 64 bits of state
> keep going after you reach 2048. This game had to remove that option to achieve a 64bit state.

Since 15^16 < 2^64, you can still use a 64 bit state to reach 2^15=32768, which does not seem to be reachable in practice (the previous state would fill the whole board!)

enriquto··on 2048 with only 64 bits of state
Total number of states = 11^16, assuming you don't reach 2048, just like you don't actually kill the king in chess.

Now log_2(11^16)=55.34, thus 56 bits are sufficient. That's tight!

enriquto··on Is gravity just entropy rising? Long-shot idea gets another look
why do the units matter here? Under this theory, will a body at absolute zero have no observable mass? No attractive field around it, no inertia if you try to move it.
enriquto··on Is Gravity Just Entropy Rising? Long-Shot Idea Gets Another Look
Sounds fun!

Would this imply that cold objects have weaker gravity?

enriquto··on Rendering Crispy Text on the GPU
> You might want to place the glyph at any position on the screen, not necessarily aligned with the pixel grid

No. I don't. This is a horrifying concept. It implies that the same character may look different every time is printed! This is extremely noticeable and really awful. For example when you align equal signs on consecutive lines of code, you notice straight away whether the characters are different.

Nowadays pixels are so small that I don't understand why don't we all just use good quality bitmap fonts. I do, and couldn't be happier with them. They are crisp to a fault, and their correct rendering does not depend on the gamma of the display (which is a serious problem that TFA does not even get into).

enriquto··on Binfmtc – binfmt_misc C scripting interface
of course it is legitimized. I just meant that the selling point of binfmtc is that the same .c file can either be compiled by any C compiler, or executed directly.
enriquto··on Binfmtc – binfmt_misc C scripting interface
This is a neat hack, but the whole file is not a valid C program.
enriquto··on Binfmtc – binfmt_misc C scripting interface
was surprised that "sudo apt install binfmtc" works out of the box on my box (linux mint) and i can do the magic just as described here
enriquto··on Quarkdown: A modern Markdown-based typesetting system
The comparison to LaTeX is a bit unfair... the latex code is much larger than it needs to, and does things that the quarkdown doesn't (like floating the figure in the page).

Once you remove that, both versions look essentially equivalent and just as readable.

enriquto··on The Future of Flatpak
True. And that's why linus showing the finger to nvidia was an exhilarating relief to so many people. The gpu driver shenanigans are horrific to contour, but they are completely unnecessary on technical grounds. All the difficulties are purposefully introduced by the graphics card hardware companies. I'd say "fuck it" and do the rendering in the cpu only, which is almost always possible.
enriquto··on Triangle splatting: radiance fields represented by triangles
it's the same list of authors, written in different formats

the first one is SURNAME, NAME separated by "and"

the second one is NAME SURNAME separated by commas

The second one is easier to read by humans, but the first one makes it clearer what is the surname (which would be ambiguous otherwise, when there are composite names). But then again, the first format breaks when someone has "and" in their name, which is not unheard of.

← PreviousPage 3 of 34Next →