News for hackers. Stuff that matters.

cdcarter

Re:A browser-based viewer for Office Open XML documents on Tuesday September 01, 2026 @12:41PM (#49524433)
How would a docker container do anything for a web component?
Can you share some credible sources on "schools banning calculus"? Googling seems to primarily show up Quora and indeed HN discussions, and no actual policy proposal or news article.
Re:Mini Micro Fantasy Computer on Wednesday May 27, 2026 @01:53PM (#48297889)
Check out the Adafruit Fruit Jam, its got pretty much everything you need.
Re:Is "colorectal cancer" rising in "young people"? on Tuesday May 26, 2026 @02:26PM (#48283746)
Most US insurance has very strict guidelines about what is diagnostic vs preventative for a colonoscopy. And its almost certianly diagnostic.
Re:Show HN: GNU Grep as a PHP Extension on Wednesday April 15, 2026 @03:31PM (#47784058)
The plugin directly adapts code from GNU Grep, so they MUST release it under the GPL, as far as I understand.
All you really need is a copy of "The Unix Programming Environment", where you can implement `hoc` in a couple hours.
What do you mean by that? bad support for what?
Re:Everything old is new again: memory optimization on Friday March 27, 2026 @02:01PM (#47546128)
Swift too, in 6.3!
The blog started publishing in 2017. Why do you think this?
That is what raincole is asking about. Do you have a source for this, in the Uk context?
Re:Swift 6.3 Released on Thursday March 26, 2026 @01:45PM (#47533463)
As of very recently, the entire stdlib (i.e. "Foundation") is open source and available on all platforms Swift targets. For a while, the Linux builds had a much smaller/limited version of Foundation, but it's fully supported now.
Re:Swift 6.3 Released on Thursday March 26, 2026 @01:44PM (#47533455)
I was looking for something that allows easy access to direct memory, with a syntax thats a little easier to explain than C. Frankly, zig was not actually a real viable option based on that syntax requirement but I still wanted to explore it.

Nim really is clean and simple.

If it weren't for the 11k process fork bomb, I wonder how much longer it would have taken for folks to notice and cut this off.
Re:Swift 6.3 Released on Thursday March 26, 2026 @01:07PM (#47532961)
I spent last week (with Opus, of course) porting the xv6-riscv teaching operating system to a bunch of different languages. Zig, Nim, LISP, and Swift.

The improvements in embedded Swift have definitely made it one of the most enjoyable/productive languages to work on the OS. I feel like I can build useful abstractions that wrap raw memory access and make the userland code feel very neat.

On the other hand, the compilation times are SO bad, that I'm really focusing on the Nim port anyway.

Re:Write up of my homebrew CPU build on Wednesday March 18, 2026 @02:10PM (#47429205)
That would be the "hardwired" option.
I don't think beyond tastes that crazy, but I have to jump in to support this bean burger. These guys are the real deal.
80% of my home voice assistant requests really need no response other than an affirmative sound effect.
Re:Apple introduces the new MacBook Air with M5 on Tuesday March 03, 2026 @01:05PM (#47236268)
Even a PCMCIA slot would help! ;)
Re:Show HN: Vibe coding a bookshelf with Claude Code on Monday December 29, 2025 @12:21PM (#46422877)
I vibe coded an app to track my movie watches, at https://moviesonthe.computer.

I really enjoy the ability to get started quickly with a known idea like “make a single user letterboxd clone” with a system prompt that explains my preferred tech stack. From there it’s relatively easy to start going in and being the tastemaker for the project.

I think people being able to build their own bespoke apps is a huge super power. Unfortunately I don’t think the tools today do a good job of teaching you how to think if you aren’t already a software engineer. Sonnet rarely grasps for an abstraction.

Re:Have Gemini stage and write commit messages for you on Sunday February 02, 2025 @12:35AM (#42906224)
Nothing stopping someone from deciding to migrate VCSs (or even just repos) and all of a sudden end up in the place that 15 years of codebase history is squashed down to a single new starting commit. :(
Re:Pretty.c on Thursday October 24, 2024 @03:20PM (#41938786)
On the other hand, ifnt is fun to say outloud.
Huge shout out to Small Computer Central/Steven Cousins. I have four or five machines designed by him, with various main boards and backplanes. The parts are all tested working, and the build instructions are comprehensive. It’s a very enjoyable project to go from a pile of parts to connecting to the UART and blinking some LEDs.
Do you have any written posts or documents about this language and your design decisions?
I don't come from TS, but this seems like a good intro to zig from that sort of perspective. There's a whole lot of paradigms to relearn when you switch to something like Zig and this kind of content is useful.

I'll nitpick with one complaint though...

    const values = std.AutoHashMap(Point, u32);
    defer values.deinit();
    try values.put(Point{ .x = 0, .y = 0 }, 1);
    //  ~~~~~~^~~~ error: expected 3 argument(s), found 2
> The mistake here isn't on that line, and it doesn't have to do with the number of arguments. Rather, it's that I forgot to call .init() on the hash map

Well...

    >>> class MyType():
    ...    def test(self, a, b): return a + b;
    ... 
    >>> x = MyType
    >>> x.test(1, 2)
    Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
    TypeError: test() missing 1 required positional argument: 'b'
How else do you want unbound functions to behave when you haven't constructed an instance of the type yet? (And FWIW, zls in vscode correctly annotates values as having type `type` for me)
Re:Crafting Interpreters on Saturday July 13, 2024 @01:55PM (#40955622)
The Unix Programming Environment tutorial for building hoc doesn’t even come close to what Nystrom gets into in Crafting Interpreters. Hoc is a very fun little language, but as Nystrom describes several times in the book…parsing just isn’t the interesting part of the game.
Re:Crafting Interpreters on Saturday July 13, 2024 @01:52PM (#40955593)
I’ve also ported the lox vm to Zig and had a great time working through it.

Since the project is designed in C, you can mostly write the exact same code in zig, with minimal modifications. If you want to use zig features, they’re easy to integrate, but Nystrom obviously won’t be giving you any hints.

But the language offers a lot of useful features (slices, optionals, error types) and makes some C paradigms syntactic realities (tagged enums, explicit pointer casts). Even more so, the standard library comes with very useful stuff (an ArrayList, a handful of different allocators, heck I replaced the trie of keywords with a StaticStringMap).

it’s a fun project, I would definitely recommend it!

Well, the markdown specification allows inline HTML, so that's to be expected. But it's true if you're taking user input as markdown and display it as rendered HTML, you need to think very carefully about escaping and sanitization.
Re:An unusual 7400-series chip implemented with a gate array on Saturday March 30, 2024 @05:12PM (#39878713)
kens is the author of the write up, not the designer of the chip.
Re: on Friday March 15, 2024 @01:11PM (#39718094)
(2017)

Older »