HNHacker News
TopNewBestAskShowJobs

pyrolistical

1,165 karma · joined October 4, 2021

submissionscomments
pyrolistical··on Zig's new bitCast semantics and LLVM back end improvements
And then you can get AI do a nicer port of SDL.zig and you get way better decls.

Proper enums, proper tagged unions, and often reading the docs can allow the AI to distinguish T * to one of

1. [*]T

2. [:0]T

3. ?T

4. *T

And these are just the most common ones. If you know it’s a read only pointer/array then you can add the const modifier

pyrolistical··on To study how chips work, MIT researchers built their own operating system
What do you mean? By the time you have kernel access like that you’ve already won.
pyrolistical··on But yak shaving is fun
I’ve been yak shaving the interfaces not the implementation.

I used ai to convert c headers into in nice zig code. Then I link to the library.

It’s cheap to use zig translate-c to convert c headers but the output isn’t nice.

You can give ai c++ source which usually has more documentation than the compromised flat c header. It allows you to do a better zig port. Zig greatly cuts down the noise in c headers as everything needs to have long prefix for namespacing. But in zig we can just nest things properly.

We can introduce intermediate layers to use proper tagged unions and distinguish ?T, *T, [*]T

pyrolistical··on How's Linear so fast? A technical breakdown
Expose the sync queue to end user and train them to understand if they attempt to close the tab with a pending queue they will get the ugly prompt warning them
pyrolistical··on I put a datacenter GPU in my gaming PC
The prefix cache is working properly 100k doesn’t prefill more than once
pyrolistical··on sp.h: Fixing C by giving it a high quality, ultra portable standard library
We should port the zig std lib as a c lib
pyrolistical··on A Markdown-based test suite
You can also write Gherkin in markdown and have test fixtures for each given, when, then
pyrolistical··on AI is a technology not a product
So robo taxis are going to stalk us?
pyrolistical··on Amazon workers under pressure to up their AI usage are making up tasks
Crappy managers don’t know (or actively avoid) how to measure business value from individuals. So they need you to be in the office so they can physically see if you are putting in the effort.

Tokens is just yet another proxy for business value.

The problem they face is if everybody is judge by business value in dollars, crappy managers are the first to go

pyrolistical··on LLMs corrupt your documents when you delegate
As a human I make typos all the time
pyrolistical··on I am worried about Bun
I love coding with bun. It comes with everything.

For my projects I don’t even need any additional dependencies. I use vanilla dom and sqlite

pyrolistical··on Using “underdrawings” for accurate text and numbers
You don’t know what you don’t know
pyrolistical··on Functional programmers need to take a look at Zig
I don’t get it

Why write:

EqPoint.eql(a, c)

When you can write:

Point.eql(a, c)

pyrolistical··on Canada's first sovereign wealth fund
A sovereign wealth fund makes sense if fund with profits from exploiting our natural resources.

That is how Norway did it

pyrolistical··on Statecharts: hierarchical state machines
Protip. Claude can generate state machine diagrams via mermaidjs blocks in markdown.

These render in GitHub flavoured markdown

pyrolistical··on Coding Models Are Doing Too Much
I attempt to solve most agent problems by treating them as a dumb human.

In this case I would ask for smaller changes and justify every change. Have it look back upon these changes and have it ask itself are they truly justified or can it be simplified.

pyrolistical··on Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in the browser (3.1GB)
Seem like a solvable problem. Per origin cache control. But actually just load the data locally
pyrolistical··on Axios compromised on NPM – Malicious versions drop remote access trojan
You don’t need to. Llm will do it for you and include the security bug
pyrolistical··on Axios compromised on NPM – Malicious versions drop remote access trojan
Debian is slower so npm is more attractive
pyrolistical··on Axios compromised on NPM – Malicious versions drop remote access trojan
There was never the business value. But now remember this axios case and use it as ammo for the next issue. Just don’t abuse it
pyrolistical··on How many branches can your CPU predict?
Agreed. I wonder if this silicon is designed for this benchmark and if not how useful is it with real code.

I would be surprised if this silicon area could not be better utilized for something else

pyrolistical··on Arno's Engram Keyboard Layouts
? JavaScript is c like and thr most popular in the world
pyrolistical··on Arno's Engram Keyboard Layouts
Why would the center two cols be used for such low probability symbols.

The braces being so far and tucked away make it really bad for c like languages

pyrolistical··on Microsoft's 'unhackable' Xbox One has been hacked by 'Bliss'
Give me enough time to reverse entropy
pyrolistical··on Corruption erodes social trust more in democracies than in autocracies
There is a mathematical model where it does. In game theory it is called tit for tat
pyrolistical··on Corruption erodes social trust more in democracies than in autocracies
Not all corruption is crime, but prob ought to be put into the laws to become crimes
pyrolistical··on Corruption erodes social trust more in democracies than in autocracies
Corruption like almost all things fall on a spectrum.

Those are examples of soft corruption

pyrolistical··on FFmpeg at Meta: Media Processing at Scale
I’ll take it. Metas purpose isnt to help the community, it’s to make money. Sucks to hear that out loud, but that is how capitalism works.

But you can use that to steer Meta. Explain how doing x (which also helps the community) makes them more money.

pyrolistical··on Why High FOV Sucks – Fixing It with Panini Projection
I find it funny people play on the highest fov in first person shooters to their own detriment.

They think the higher fov is a pure win as it allows them to see more but in reality it is a tradeoff making targets in front of them smaller.

pyrolistical··on Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection in Firefox 148
And for those who want a better innerHTML, use insertAdjacentHTML https://developer.mozilla.org/en-US/docs/Web/API/Element/ins...

I don’t ever use it with user input, but use it often when building SPA without frameworks

← PreviousPage 2 of 16Next →