Show HN: HyperCMD, write CLI applications using plain HTML
3 by andreespirela | 0 comments on Hacker News.
I've been working on this repo, it allows you to write CLI applications using plain HTML. For the behavioral side, you write the states/behaviors in Rust. Check it out and hope you like it!
Watch the number of websites being hacked today, one by one on a page, increasing in real time.
New Show Hacker News story: Show HN: An eBPF kernel guard for vTPM access
Show HN: An eBPF kernel guard for vTPM access
4 by bschaatsbergen | 0 comments on Hacker News.
A kernel guard I prototyped after eBPF and vTPM work for a customer, where we use the TPM to protect the private keys for mTLS. Any process running as root can open the TPM devices, and so can any process in the `tss` group, through `/dev/tpmrm0`. That means they can use those keys too. This is a prototype and some research into protecting this path.
4 by bschaatsbergen | 0 comments on Hacker News.
A kernel guard I prototyped after eBPF and vTPM work for a customer, where we use the TPM to protect the private keys for mTLS. Any process running as root can open the TPM devices, and so can any process in the `tss` group, through `/dev/tpmrm0`. That means they can use those keys too. This is a prototype and some research into protecting this path.
New Show Hacker News story: Show HN: Local pretrained classifiers, GPU not needed
Show HN: Local pretrained classifiers, GPU not needed
8 by nico | 3 comments on Hacker News.
I was curious about what classifiers could do. It turns out, a lot, sometimes even play Doom. Jeffy is currently a collection of simple classifiers that can do spam detection, intent routing, topic classification, sentiment analysis and even play Doom Jeffy works locally on a regular computer, no GPU needed. It comes with 13 already-trained classifiers, and you can also use Jeffy to train your own classifiers And there’s a lot that can be built on top of this style of architecture Curious what tasks people find useful, and what architectures you are using for similar tasks
8 by nico | 3 comments on Hacker News.
I was curious about what classifiers could do. It turns out, a lot, sometimes even play Doom. Jeffy is currently a collection of simple classifiers that can do spam detection, intent routing, topic classification, sentiment analysis and even play Doom Jeffy works locally on a regular computer, no GPU needed. It comes with 13 already-trained classifiers, and you can also use Jeffy to train your own classifiers And there’s a lot that can be built on top of this style of architecture Curious what tasks people find useful, and what architectures you are using for similar tasks
New Show Hacker News story: Show HN: Thoreau BASIC – What if BASIC hadn't gone out of fashion?
Show HN: Thoreau BASIC – What if BASIC hadn't gone out of fashion?
10 by Gorsefound | 5 comments on Hacker News.
Thoreau BASIC started as a joke. I wanted a BASIC where I could type something ridiculous like: DIM A%(12000000000) …and have it actually work. Then I kept adding things. The result is Thoreau BASIC, a free x64 BASIC interpreter inspired by GW-BASIC, running both as a normal Windows program and directly on bare-metal UEFI without an operating system. Version 3.2 has become considerably more ambitious than the little interpreter I originally intended to write. The language still deliberately looks and feels like old Microsoft BASIC. Line numbers, GOTO, GOSUB, PRINT, PSET, LINE, CIRCLE, DRAW, etc. are all there. But underneath that rather innocent-looking surface is now quite a lot of machinery. Some of the current features: native x64 JIT compilation, with automatic fallback to the interpreter PARFOR for multithreaded numeric loops SSE2 / AVX2 acceleration where available 64-bit addressing and very large arrays native complex, quaternion and other hypercomplex numbers arbitrary-resolution 24-bit graphics sprites, bitmap operations, polygon filling and mouse input TCP/IP networking on Windows and UEFI an integrated profiler, debugger, tracing and program-analysis tools CREATEEXE to turn a BASIC program into a standalone Windows executable CREATEEFI to turn the same program into a directly bootable UEFI application The sound system has also grown rather out of proportion. Thoreau BASIC can now handle up to 32 live instrument channels plus 64 sound effect channels and 256 voices, with real-time pan and brightness control. NOTE and SOUNDKEY can be used more like playable synthesis primitives rather than just old-school BASIC beeps. 3.2 also expands the less glamorous but surprisingly useful parts of the environment. There is better file browsing and selection with GETFILES and SELECTBOX, longer case-preserving paths, recovery/file-flush facilities, and considerably more detailed SYSTEMINFO$ diagnostics. The latter is useful for seeing things such as available CPU capabilities and the execution environment while debugging performance differences between machines. One thing I've spent a lot of time on recently is making the BASIC programs themselves fast enough that they stop feeling like demonstrations of an interpreter. For example, the current Mandelbrot demo is a real-time interactive fractal explorer. Mouse movement pans the fractal, left-click zooms in and right-click zooms out, while the BASIC program continuously redraws and displays the frame rate. There are also 3D and procedural demos, sprite programs, networking examples, hypercomplex fractals and games. An important design constraint throughout the project has been that Windows and UEFI should execute essentially the same BASIC language. A program shouldn't suddenly become a different species just because there is no operating system underneath it. And yes, I am fully aware of the absurdity of combining GOTO 100 with AVX2, multithreading, TCP/IP and quaternion arithmetic. That is increasingly the point. I'm interested in the question: What would BASIC look like if it had never gone out of fashion? Thoreau BASIC 3.2 is my current answer. I'd be especially interested in feedback from people who remember GW-BASIC/QBasic, compiler/interpreter people, and anyone sufficiently unreasonable to enjoy the idea of booting a modern x64 PC directly into a BASIC interpreter/JIT compiler.
10 by Gorsefound | 5 comments on Hacker News.
Thoreau BASIC started as a joke. I wanted a BASIC where I could type something ridiculous like: DIM A%(12000000000) …and have it actually work. Then I kept adding things. The result is Thoreau BASIC, a free x64 BASIC interpreter inspired by GW-BASIC, running both as a normal Windows program and directly on bare-metal UEFI without an operating system. Version 3.2 has become considerably more ambitious than the little interpreter I originally intended to write. The language still deliberately looks and feels like old Microsoft BASIC. Line numbers, GOTO, GOSUB, PRINT, PSET, LINE, CIRCLE, DRAW, etc. are all there. But underneath that rather innocent-looking surface is now quite a lot of machinery. Some of the current features: native x64 JIT compilation, with automatic fallback to the interpreter PARFOR for multithreaded numeric loops SSE2 / AVX2 acceleration where available 64-bit addressing and very large arrays native complex, quaternion and other hypercomplex numbers arbitrary-resolution 24-bit graphics sprites, bitmap operations, polygon filling and mouse input TCP/IP networking on Windows and UEFI an integrated profiler, debugger, tracing and program-analysis tools CREATEEXE to turn a BASIC program into a standalone Windows executable CREATEEFI to turn the same program into a directly bootable UEFI application The sound system has also grown rather out of proportion. Thoreau BASIC can now handle up to 32 live instrument channels plus 64 sound effect channels and 256 voices, with real-time pan and brightness control. NOTE and SOUNDKEY can be used more like playable synthesis primitives rather than just old-school BASIC beeps. 3.2 also expands the less glamorous but surprisingly useful parts of the environment. There is better file browsing and selection with GETFILES and SELECTBOX, longer case-preserving paths, recovery/file-flush facilities, and considerably more detailed SYSTEMINFO$ diagnostics. The latter is useful for seeing things such as available CPU capabilities and the execution environment while debugging performance differences between machines. One thing I've spent a lot of time on recently is making the BASIC programs themselves fast enough that they stop feeling like demonstrations of an interpreter. For example, the current Mandelbrot demo is a real-time interactive fractal explorer. Mouse movement pans the fractal, left-click zooms in and right-click zooms out, while the BASIC program continuously redraws and displays the frame rate. There are also 3D and procedural demos, sprite programs, networking examples, hypercomplex fractals and games. An important design constraint throughout the project has been that Windows and UEFI should execute essentially the same BASIC language. A program shouldn't suddenly become a different species just because there is no operating system underneath it. And yes, I am fully aware of the absurdity of combining GOTO 100 with AVX2, multithreading, TCP/IP and quaternion arithmetic. That is increasingly the point. I'm interested in the question: What would BASIC look like if it had never gone out of fashion? Thoreau BASIC 3.2 is my current answer. I'd be especially interested in feedback from people who remember GW-BASIC/QBasic, compiler/interpreter people, and anyone sufficiently unreasonable to enjoy the idea of booting a modern x64 PC directly into a BASIC interpreter/JIT compiler.
New Show Hacker News story: Show HN: Four LLMs play 20 questions for real money, live
Show HN: Four LLMs play 20 questions for real money, live
4 by Individuum | 0 comments on Hacker News.
Hi HN, I wanted to explore how AI models behave when they have their own money. So I gave 4 frontier models their own USDC and had them compete in games of 20 questions. Anyone can watch live. Each round, one model takes a turn picking the secret word, and the others interrogate it in a group chat. Every move costs money: 10 cents to ask a question, $1.00 for a wrong guess, and a right guess takes the pot. Questions are paid for privately, but inform everyone. This introduces a free rider problem that's fun to observe. The models privately record their best guess and confidence level on every turn. This makes it possible to look for patterns in how they’re calibrated. Overconfident models bleed money, timid ones rarely win, and well-calibrated ones get rich. The money is real, and every transfer is on-chain. At the end of each game a referee model judges the transcript to make sure the host didn’t lie in any answers. If the host is caught lying, it forfeits all its fees (it happens). Season 1 ran for 85 games and Gemini turned $25 into $61 while Claude and Grok went broke. Models who had recently guessed wrong were 5x more likely to guess again. Full writeup at https://ift.tt/6AULG9s Season 2 is live now, and you can watch them play here: https://ift.tt/yFfR0TU Built solo as a side project.
4 by Individuum | 0 comments on Hacker News.
Hi HN, I wanted to explore how AI models behave when they have their own money. So I gave 4 frontier models their own USDC and had them compete in games of 20 questions. Anyone can watch live. Each round, one model takes a turn picking the secret word, and the others interrogate it in a group chat. Every move costs money: 10 cents to ask a question, $1.00 for a wrong guess, and a right guess takes the pot. Questions are paid for privately, but inform everyone. This introduces a free rider problem that's fun to observe. The models privately record their best guess and confidence level on every turn. This makes it possible to look for patterns in how they’re calibrated. Overconfident models bleed money, timid ones rarely win, and well-calibrated ones get rich. The money is real, and every transfer is on-chain. At the end of each game a referee model judges the transcript to make sure the host didn’t lie in any answers. If the host is caught lying, it forfeits all its fees (it happens). Season 1 ran for 85 games and Gemini turned $25 into $61 while Claude and Grok went broke. Models who had recently guessed wrong were 5x more likely to guess again. Full writeup at https://ift.tt/6AULG9s Season 2 is live now, and you can watch them play here: https://ift.tt/yFfR0TU Built solo as a side project.