frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Power over Ethernet (PoE) basics and beyond

https://www.edn.com/poe-basics-and-beyond-what-every-engineer-should-know/
106•voxadam•5d ago•63 comments

rlsw – Raylib software OpenGL renderer in less than 5k LOC

https://github.com/raysan5/raylib/blob/master/src/external/rlsw.h
135•fschuett•7h ago•28 comments

OpenBSD 7.8 Released

https://cdn.openbsd.org/pub/OpenBSD/7.8/ANNOUNCEMENT
84•paulnpace•2h ago•15 comments

Replacing a $3000/mo Heroku bill with a $55/mo server

https://disco.cloud/blog/how-idealistorg-replaced-a-3000mo-heroku-bill-with-a-55-server/
484•jryio•8h ago•339 comments

LLMs can get "brain rot"

https://llm-brain-rot.github.io/
318•tamnd•14h ago•180 comments

Neural audio codecs: how to get audio into LLMs

https://kyutai.org/next/codec-explainer
342•karimf•15h ago•103 comments

The Hidden Engineering of Niagara Falls

https://practical.engineering/blog/2025/10/21/the-hidden-engineering-of-niagara-falls
69•chmaynard•5h ago•1 comments

Ask HN: Our AWS account got compromised after their outage

222•kinj28•12h ago•57 comments

Wikipedia says traffic is falling due to AI search summaries and social video

https://techcrunch.com/2025/10/18/wikipedia-says-traffic-is-falling-due-to-ai-search-summaries-an...
321•gmays•1d ago•300 comments

Show HN: Modshim – a new alternative to monkey-patching in Python

https://github.com/joouha/modshim
14•joouha•5d ago•3 comments

NASA chief suggests SpaceX may be booted from moon mission

https://www.cnn.com/2025/10/20/science/nasa-spacex-moon-landing-contract-sean-duffy
253•voxleone•15h ago•738 comments

ChatGPT Atlas

https://chatgpt.com/atlas
599•easton•11h ago•569 comments

Mathematicians have found a hidden 'reset button' for undoing rotation

https://www.newscientist.com/article/2499647-mathematicians-have-found-a-hidden-reset-button-for-...
112•mikhael•5d ago•78 comments

Rectal oxygen delivery might soon be a real medical treatment

https://arstechnica.com/science/2025/10/butt-breathing-might-soon-be-a-real-medical-treatment/
133•zdw•5h ago•63 comments

Getting DeepSeek-OCR working on an Nvidia Spark via brute force with Claude Code

https://simonwillison.net/2025/Oct/20/deepseek-ocr-claude-code/
135•simonw•1d ago•24 comments

Build your own database

https://www.nan.fyi/database
420•nansdotio•11h ago•64 comments

Understanding conflict resolution and avoidance in PostgreSQL: a complete guide

https://www.pgedge.com/blog/living-on-the-edge
27•birdculture•1w ago•1 comments

Minds, brains, and programs (1980) [pdf]

https://home.csulb.edu/~cwallis/382/readings/482/searle.minds.brains.programs.bbs.1980.pdf
60•measurablefunc•1w ago•24 comments

60k kids have avoided peanut allergies due to 2015 advice, study finds

https://www.cbsnews.com/news/peanut-allergies-60000-kids-avoided-2015-advice/
307•zdw•1d ago•278 comments

Doomsday scoreboard

https://doomsday.march1studios.com/
191•diymaker•8h ago•87 comments

What do we do if SETI is successful?

https://www.universetoday.com/articles/what-do-we-do-if-seti-is-successful
131•leephillips•1d ago•214 comments

Foreign hackers breached a US nuclear weapons plant via SharePoint flaws

https://www.csoonline.com/article/4074962/foreign-hackers-breached-a-us-nuclear-weapons-plant-via...
339•zdw•12h ago•231 comments

The death of thread per core

https://buttondown.com/jaffray/archive/the-death-of-thread-per-core/
94•ibobev•1d ago•38 comments

Cdb: Add support for cdb64

https://cdb.cr.yp.to/download.html
75•kreco•4h ago•21 comments

Flexport Is Hiring SDRs in Chicago

https://job-boards.greenhouse.io/flexport/jobs/5690976?gh_jid=5690976
1•thedogeye•11h ago

Show HN: Katakate – Dozens of VMs per node for safe code exec

https://github.com/Katakate/k7
96•gbxk•13h ago•36 comments

Erowid - Documenting the Complex Relationship Between Humans and Psychoactives

https://www.erowid.org
27•slow_typist•7h ago•1 comments

KDE Connect: Enabling communication between all your devices

https://community.kde.org/KDEConnect
392•snthd•1w ago•160 comments

Diamond Thermal Conductivity: A New Era in Chip Cooling

https://spectrum.ieee.org/diamond-thermal-conductivity
178•rbanffy•17h ago•59 comments

Ilo – a Forth system running on UEFI

https://asciinema.org/a/Lbxa2w9R5IbaJqW3INqVrbX8E
108•rickcarlino•15h ago•42 comments
Open in hackernews

rlsw – Raylib software OpenGL renderer in less than 5k LOC

https://github.com/raysan5/raylib/blob/master/src/external/rlsw.h
135•fschuett•7h ago

Comments

nnevatie•6h ago
*OpenGL-style.
Pannoniae•5h ago
Congrats for only reading the header ;) It's actually a pretty decent OpenGL 1.1 software implementation, obviously not complete and spec-correct though. It's more like those MiniGL drivers back in the day, implementing just enough of the spec so the game can run ;)

In a similar way, this implements just enough so Raylib's OpenGL backend can run! It was done so you can use the library without external graphics dependencies if you really want to.

furyofantares•5h ago
That's an extremely snarky reply given the post is just a direct link to the header.
Pannoniae•5h ago
No, the doc-header of the header! Apologies if I wasn't clear. I just thought the GP zoomed in on the word "-style" in the first line without reading more (it's probably since it's not a full 1.1 implementation, just something which can do enough to shim a good chunk of 1.1 functions so the RL GL1.1 backend can run)
furyofantares•4h ago
Still, if you post a link to a roughly 5k line raw source file, rather than like, some post about it, roughly nobody is gonna read much of the file before commenting.

edit: I stand corrected by the downmods!

ciroduran•5h ago
Raylib's author was very happy to announce that you can compile an entire raylib program with no dependencies other than, say, being a win32 app https://x.com/raysan5/status/1980322289527976202
smlacy•3h ago
but ... why?
foota•3h ago
As someone who was once a child trying to figure out how to compile and link things to use SDL, I think there's some educational value in letting people make games without having to dive deep into how to use C++ toolchains.
SJC_Hacker•3h ago
If you want to do that, skip C++ entirely and just use Javascript or Python. You can get shiny things really quickly.
irilesscent•2h ago
I think there's still value in learning the C++ language and making a game or a demo is quite rewarding although raylib does have bindings for basically every conceivable language.
zamadatix•3h ago
The mantra for the library is "raylib is a simple and easy-to-use library to enjoy videogames programming." It's for hobbyist, learners, tinkerers, or just those that want to enjoy minimalistic graphics programming without having to deal with interfacing with modern machines yourself.

The default Windows installer bundles the compiler and a text editor to make poking at C to get graphics on the screen (accelerated or not) a 1 step process. Raylib is also extremely cross platform, has bindings in about every language, and has extra (also header only, 0 dependency) optional libraries for many adjacent things like audio or text rendering.

When I first started to learn C/C++ in the 2000s I spent more time fighting the IDE/Windows/GCC or getting SDL/SFML to compile than I did actually playing with code - and then it all fell apart when I tried to get it working on both Linux and Windows so I said fuck it and ignored that kind of programming for many years. Raylib is about going the opposite direction - start poking at C code (or whatever binding) and having it break and worry about the environment later when you're ready for something else.

abnercoimbre•2h ago
I mean this with all the appropriate venom we can muster: this attitude is why software quality is nonexistent.
mouse_•5h ago
This will be perfect for Nintendo 3DS!
JoeyJoJoJr•2h ago
Interesting. Does this mean it could be used for creating games for NES, SNES, Genesis, etc?
Archit3ch•5h ago
> OpenGL 1.1-style implementation on software

How many lines to implement OpenGL 2.0 (non ES) ?

Pannoniae•5h ago
An order of magnitude more ;) You need to implement user-programmable shaders, both ARB assembly and GLSL. That needs a GLSL parser, a shader interpreter (talking about compiling it to machine code would add another magnitude of complexity).

You also need to implement multitexturing (probably the easy part) but also all the texture combiner stuff too. This one is not hard but also a good chunk of code...

All in all, at least 40K if you ask me, but that's a very lowball estimate.

Of course if you don't care about implementing the full spec, you can get away with a lot less.

0x0203•2h ago
Not sure what the line count is, but PortableGL is a software renderer for 3.x(ish):

https://github.com/rswinkle/PortableGL

Cool project, and fun to play with.

bsder•4h ago
Fabrice Bellard also wrote an OpenGL thing: https://bellard.org/TinyGL/
bigfishrunning•2h ago
What an aspirational figure, that guy does it all!
brcmthrowaway•4h ago
Does this support CUDA?
Pannoniae•4h ago
No, this is CPU rendering only! Not even SIMD, just straightforward integer (and float) code.
brcmthrowaway•4h ago
Now make it fixed point
SJC_Hacker•3h ago
If its OpenGL why is it CPU only ?
bitwize•3h ago
OpenGL is an API. Software renderers for it—like the one that originally came with Windows NT, or even early versions of Mesa—have been out for a long time.
SJC_Hacker•2h ago
I haven't messed with it for a while, but last I checked it really wasn't that much code to make it run on the GPU. Maybe an extra 100 lines or so. Although you couldn't use windowed mode, had to be fullscreen.
bee_rider•1h ago
It would be kind of neat to have OpenGL running on AVX-512, just for fun…
pbohun•1h ago
What's cool about this is that computers are so fast that you could probably make a decent 2D game using only this software-rendered OpenGL 1.1 library.
YesBox•1h ago
Edit: I missed this was software rendered. I’m one gen-iteration ahead. Prob would still be possible to render my game cpu side provided I use the most efficient sprite depth ordering algorithm possible (my game is isometric pixel art like rollercoaster tycoon)

Ha! That’s what I’m stuck with for Metropolis 1998. I have to use the ancient OpenGL fixed function pipeline (thankfully I discovered an AB extension function in the gl.h file that allows addition fields to be passed to the GPU).

I’m using SFML for the graphics framework which I think is OpenGL 1.x

Game to show what’s possible: https://store.steampowered.com/app/2287430/Metropolis_1998/