News for hackers. Stuff that matters.

kbatdorf

Show HN: Chip-8 emulator in WebAssembly (JS –> WASM)

https://chip8.cool.omg.lol

I've been learning more about WebAssembly and a bucket list project I've always wanted to complete was to write an emulator. I chose the chip-8 vm as it's popular as a stepping stone project and pretty straight-forward. Only the display opcodes really gave me some trouble, specific to clipping/wrapping and tracking collisions.The demo includes some test roms as well as some roms from various...

( Read More... | no comments | on HN )

Show HN: A lexer, parser, and WebAssembly bytecode generator for Pinky Lang

https://pinky.cool.omg.lol

I wrote a compiler for the Pinky Scripting language that does code generation targeting wasm. It's written in TypeScript with the webassembly bytecodes mapped out to helper functions like i32.const(0)The url is to a playground where you can write code in the Pinky Scripting Language and see the tokens, ast, bytecode, and output. Pinky Lang has a straight-forward grammar and is designed to be...

( Read More... | 1 comment | on HN )

Show HN: Hacker News Menu Bar App for Raycast – View Stories over N Points

https://www.raycast.com/KevinBatdorf/hacker-news-top-stories

I wanted a way to get notified about high-engagement stories on HN (e.g., 500+ points), so I built this Raycast menubar extension. It uses the HN API to filter and display top stories right from your menu bar.It was quick to build - just half a day.Code: https://github.com/KevinBatdorf/hacker-news-top-stories-rayc...

( Read More... | no comments | on HN )
I used Deno's (a JavaScript runtime) upcoming key/value cloud database feature along with their web application framework "Fresh" to bootstrap this in about 5 hours. I found the developer experience using all of Deno's tooling both rewarding and intuitive.
Re:Alpine.js V3 release and mini-event announced on Thursday May 13, 2021 @12:16AM (#27138343)
Good point. It's a small JS framework that you might think of as a VueJS/React "lite" https://github.com/alpinejs/alpine
Re:TailwindCSS v2.0 on Wednesday November 18, 2020 @11:30PM (#25146237)
You could also update the Tailwind config file to define what "text-7xl" is. Default is "4.5rem"
Maybe now Netflix will show me titles I'm actually interested in.