News for hackers. Stuff that matters.

numeromancer

Re:Xmake: A cross-platform build utility based on Lua on Thursday January 29, 2026 @11:23AM (#46812358)
That's what I meant: the first you can do, the second, not.
Re:Xmake: A cross-platform build utility based on Lua on Thursday January 29, 2026 @11:01AM (#46811982)
I think the creators did it a disservice to xmake when they tried to unluaize the syntax. You can also do:

    target("foo", {
      kind = "binary",
      files = { "src/*.cpp" },
      includedirs = { "src" },
      defines = { "FOO", "BAR=BAZ" },
    })
which suits Lua better. Unfortunately you cannot do

    target {
      name = "foo",
      kind = "binary",
      files = { "src/*.cpp" },
      includedirs = { "src" },
      defines = { "FOO", "BAR=BAZ" },
    }
which would be the lua-est lua of all.
Re:Dead Internet Theory on Monday January 19, 2026 @09:42AM (#46679513)
"photos of giants that built the pyramids in Egypt, all the way to short videos of pretty girls saying that the EU is bad for Poland."

Those sound funny; why would they make you sad?

Re:Ask HN: What projects do you donate to? on Tuesday May 27, 2025 @01:17PM (#44108878)
I focus on peer-to-peer services, as I think it is the most important focus for free software:

- Radicle - IPFS - torrents and magnet links - i2p - syncthing - PeerTube/ActivityPub

&al

Re:Ask HN: Who is hiring? (May 2025) on Friday May 02, 2025 @01:22PM (#43872548)
"allows them to have more resources to invest in patient care" LOL
Re:I create buildings from mushroom components on Friday March 14, 2025 @11:09AM (#43363378)
PW;DR: Pay-Walled; Didn't Read. But...

Will this be the stuff of the housing of tomorrowind?

Re:Long division verified via Hoare logic on Thursday February 27, 2025 @09:07AM (#43194498)
> will likely not be a major boost for software productivity

You can make plastic knives much faster and cheaper than metal ones. Production!

It failed to catch on outside the defense industry because that is where is started. It was long sneered at as a "language designed by committee".

In one programming class, in college, we used a text-book called "Oh my, Modula 3!". On the back they explained the title, saying "better 'Oh my, Modula 3!' than 'Oh no, Ada!'".

Re:Markdown's Big Brother: Say Hello to AsciiDoc on Thursday February 06, 2025 @08:37AM (#42962153)
ASCII makes up 90% of all digital text; UTF-8 makes up the other 90%.
Re:Understanding Memory Management, Part 1: C on Thursday January 16, 2025 @08:50AM (#42725074)
Just no.

    address = X
    length = *X
    address = address + 1
    while length > 0 {
        address = address + 1
        print *address
    }
Re:I Wrote "Janet for Mortals" on Wednesday November 27, 2024 @10:34AM (#42256836)
I am not waiting for Janet for Ethereals. Once it ships, it will always have been available.
Re:C Until It Is No Longer C on Tuesday September 24, 2024 @12:24PM (#41638210)
No.
Re:The book Kubrick tried to kill on Tuesday May 07, 2024 @08:18AM (#40284592)
Stanley Kubrick was one of that kind of people who cannot take criticism of anything they do.
The Abolition of Man - C. S. Lewis

All Things Considered - G. K. Chesterton

Some others I daren't mention.

Category Theory for Programmers - Bartosz Milewski

The Design of Relational Databases - Heikki Mannila, Kari-Jouko Raiha

Re:VC Says Half of Google Staff Do 'No Real Work' on Monday May 06, 2024 @04:48PM (#40279331)
Whenever you extrapolate the "corporate vision" of these VC pontificators, you see a company all of whose revenue goes to investor share-grabbers, and whose projects are all funded by employees who are paid nothing.
Re:The NSA is just days away from taking over the internet on Wednesday April 17, 2024 @08:08AM (#40063450)
The Deep State treats human rights as damage, and routes around it.
Re:Gerbil Scheme – A Lisp for the 21st Century on Monday March 25, 2024 @10:00AM (#39816410)
I think we'll be led by a programmer from another language who comes and unites the tribes against the languages that now dominate, a voice from the outer world. The "Lispan al-Gaib", if you will.
Re:How do lava lamps help with Internet encryption? on Monday March 18, 2024 @08:35AM (#39743457)
Is this a trial run for an April 1 article?
A detailed criticism of Diamond's hypothesis:

https://www.youtube.com/watch?v=dFECyeihuZY

Re:Command Line Interface Guidelines on Wednesday February 07, 2024 @11:35AM (#39290639)
We ran so much faster when we didn't have to run with shoes on.
Re:Command Line Interface Guidelines on Wednesday February 07, 2024 @11:22AM (#39290435)
> Any invocation of an external program can fail for a variety of reasons, and the shell doesn't provide adequate mechanisms for dealing with it, apart from exit codes and filtering error text output.

True, handling multiple sub-processes is difficult in most Unix shells. This is a function where Powershell could have done so much better, but didn't. It is somewhat better than bash&co, but could have been much more so. Python does it much better than Powershell does.

Re:Two File Descriptors for Sockets on Monday January 22, 2024 @01:51PM (#39093613)
He built several utilities for doing what is described here.

https://cr.yp.to/ucspi-tcp.html

These are great for duct-taping connections. I created a whole suite of utilities for another programs for uploading firmware updates. I was able to create one program for handling the uploads with several different comms protocols and devices, without having to handle details of tcp connections, serial connections, UDP, etc. socat is another great tool for this.

Re:Battery-free self-powered sensor harvests magnetic energy on Monday January 22, 2024 @01:25PM (#39093209)
This company creates sensors for monitoring power-grid lines which are powered from line induction:

https://www.gridsentry.us/

Worsidge's headline:

"Can this headline be answered by the word 'no'?"

Re:Setenv Is Not Thread Safe and C Doesn't Want to Fix It on Tuesday November 21, 2023 @10:01AM (#38364511)
The text implies that any second call to getenv invalidates the returned value of any prior call to getenv; even without threads, without calling setenv, a second call to the function invalidates the return from an earlier call. I re-affirm my conclusion, without qualification: BROKEN.
Re:Setenv Is Not Thread Safe and C Doesn't Want to Fix It on Monday November 20, 2023 @09:21AM (#38348597)
It says more than that:

"The returned string pointer might be invalidated or the string content might be overwritten by a subsequent call to getenv()"

You don't even need threads for this to be unsafe; another call to the same function may invalidate earlier-gotten pointers. I don't see how to interpret this as anything but broken.

Re:Good times create weak men on Tuesday October 24, 2023 @10:26AM (#37999597)
I wonder if anyone has done a study of the relation of market share to software quality. It seems as though there is an inflection point of the market share measure above which software quality declines significantly because the fear of being outdone is diminished.
Re:Movie Piracy Is Strongly Linked to Box Office Revenue on Tuesday October 10, 2023 @11:31AM (#37833405)
Or, perhaps, piracy measurement is link to box office revenue.

Older »