frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Zig, the Ideal C Replacement Or?

http://bitshifters.cc/2025/05/04/zig.html
4•hmac1282•2h ago

Comments

jbritton•1h ago
Instinctually I’m bothered by passing an allocator to everything. LISP’s dynamic variables spring to mind. One could set an arena allocator at the top of a loop in a dynamic variable and then everything inside the loop would use that allocator. The bottom of the loop could free everything. Although I do really like knowing if something might call an allocator, perhaps a function specifier to indicate it allocates.

Although I’m intrigued by another idea I haven’t thought through. Haskell requires all function side effects to essentially propagate a description of the side effect up to main() where Haskell executes the side effect. There is also the idea of imperative shell, functional core that I don’t fully grasp. In any case perhaps all side effects should execute at the top level or maybe in a parallel environment and here passing an allocator would not be so onerous.

com2kid•17m ago
I disagree on many points the article makes, but it is well written and lays out its arguments well.

One example - I prefer the named fields of Zig over Odin's use of positional fields. Zig's syntax is the more popular one as of late, heck even C has named struct member initialization.

IMHO Positional is just asking for trouble. Yes it works fine for game programming, and not having to specify x and y thousands of times in a code base is nice, but for general purpose languages where a struct can have a dozen+ fields to init, positional assignment is how bugs are made.

Jash: JavaScript Interpreter in Bash

https://github.com/elemantalcode/jash
1•thunderbong•5m ago•0 comments

A simple 16x16 dot animation from simple math rules

https://tixy.land
1•andrewrn•6m ago•0 comments

Authenticity Is BS

https://write.as/exitwhenplanned/theres-a-cost-to-not-playing-the-game
1•JustExAWS•7m ago•0 comments

Spatial Data-Management (1979) [pdf]

https://www.media.mit.edu/speech/papers/1979/bolt_1979_spatial_data-management.pdf
1•todsacerdoti•8m ago•0 comments

Another World

https://www.anotherworld.fr/anotherworld_uk/another_world.htm
1•myth_drannon•10m ago•0 comments

Beyond Opponent and Self: Martial Arts as a Gateway to Nonduality

https://cultivatingsystems.substack.com/p/beyond-opponent-and-self-martial
1•lawrenceyan•13m ago•0 comments

Algebraic Effects: Another mistake carried through to perfection?

https://kjosib.github.io/Counterpoint/effects.html
1•todsacerdoti•14m ago•0 comments

Any Interest in an AI Interview Coach Behaviorals and Technicals

https://docs.google.com/forms/d/e/1FAIpQLSeqFW6SeqblGQCnUxpUa9Eyar2bTguaqrAcf7XxLWuv81qejQ/viewform?usp=dialog
1•InterviewSense•19m ago•1 comments

Sam Altman teaches a masterclass of wielding power again

https://rajiv.com/blog/2025/05/09/the-power-playbook-decoding-leadership-dynamics-in-openais-executive-announcement/
1•rajivpant•22m ago•0 comments

Ask HN: Where do I go to read if I loved real life magazine?

1•cgio•26m ago•0 comments

AI hallucinations are getting worse – and they're here to stay

https://www.newscientist.com/article/2479545-ai-hallucinations-are-getting-worse-and-theyre-here-to-stay/
2•OutOfHere•27m ago•0 comments

Q32 CV Match – Upload resumes and get a ranked shortlist with summaries

https://cv.q32.com
1•earonesty•27m ago•1 comments

Pope concerned of "artificial intelligence, robotics, human relationships"

https://www.detroitcatholic.com/news/chilean-cardinal-gives-insight-to-the-conclave-that-elected-pope-leo-xiv
2•Apocryphon•29m ago•1 comments

Uber staff revolts over return-to-office mandate

https://www.fastcompany.com/91331404/uber-staff-revolts-over-return-to-office-mandate
5•doctaj•31m ago•2 comments

Our Slack is dead. Long live Zulip

https://changelog.com/posts/our-slack-is-dead-long-live-zulip
4•Cyphase•39m ago•0 comments

Backdooring the IDE: Malicious NPM Packages Hijack Cursor Editor on macOS

https://socket.dev/blog/malicious-npm-packages-hijack-cursor-editor-on-macos
2•gnabgib•39m ago•0 comments

Explore human genome in the terminal with Vim motion

https://github.com/zeqianli/tgv
3•zeqianli•40m ago•0 comments

Malicious NPM Packages Target Cursor AI's macOS Users

https://www.securityweek.com/malicious-npm-packages-target-cursor-ais-macos-users/
2•selfhoster•42m ago•0 comments

Open Source was a mistake

https://twitter.com/krzyzanowskim/status/1920854461825593641
3•ricecat•47m ago•0 comments

Preserving old GitHub Pages URLs while migrating a repo

https://yossarian.net/til/post/preserving-old-github-pages-urls-while-migrating-a-repo/
1•woodruffw•51m ago•0 comments

Record Wind Energy Installations Not Enough to Meet Renewables Goals

https://oilprice.com/Latest-Energy-News/World-News/Record-Wind-Energy-Installations-Not-Enough-to-Meet-Renewables-Goals.html
1•PaulHoule•52m ago•0 comments

Live from GodotCon Boston: Web .NET Prototype

https://godotengine.org/article/live-from-godotcon-boston-web-dotnet-prototype/
3•vyrotek•52m ago•0 comments

Crossjig: Word game, create the finished board from fragments

https://crossjig.com/
1•indigodaddy•55m ago•0 comments

Unity is threatening to revoke licenses of developers with flawed data

https://old.reddit.com/r/gamedev/comments/1kiyh0m/unity_is_threatening_to_revoke_all_licenses_for/
3•LookAtThatBacon•56m ago•0 comments

The trends behind the historically low U.S. birth rate

https://www.cbsnews.com/news/trends-behind-historically-low-us-birth-rate-60-minutes/
8•MilnerRoute•1h ago•3 comments

Five People Facebook Doesn't Know About

https://medium.com/the-haven/5-people-facebook-doesnt-know-about-874c5405cdb1
1•bryanrasmussen•1h ago•0 comments

I made a tool that converts angry app store reviews into startup ideas

https://www.findappgaps.com/
3•ederross•1h ago•1 comments

Intercepting Network Requests in JavaScript

https://rxliuli.com/blog/intercepting-network-requests-in-chrome-extensions/
2•rxliuli•1h ago•0 comments

Reasons Manufacturing is not Special

https://mainstreetjournal.substack.com/p/4-reasons-manufacturing-is-not-special
1•walterbell•1h ago•0 comments

Building a bare-metal bootable game for Raspberry Pi in C#

https://migeel.sk/blog/2023/12/08/building-bare-metal-bootable-game-for-raspberry-pi-in-csharp/
4•shakna•1h ago•0 comments