Better HN
topnewbestaskshowjobs
Log inSign up

aduros

11 karma · joined Sep 9, 2011 (15y ago) · 10 submissions

Submissions

comment 5y ago · link · parent

Physical gamepads are supported by memory mapping, the game itself doesn't know if the player is using a keyboard, touchscreen, or real gamepad.

I think if multiplayer will ever be supported, it should be abstracted in the same way. We might create a runtime for libretro, which could enable adhoc netplay "for free".

comment 5y ago · link · parent

This is a project I'm working on to try to make WebAssembly game development more accessible and fun. Here are the key features:

* No Glue Code: If you've ever tried to write even a simple "Hello World" with WebAssembly before, you'll know it usually involves writing a bunch of JS and HTML glue. WASM-4 removes all of that, games interface directly with the system through a small API.

* Minimalist: Fantasy consoles force developers to work with limited resources. This makes them simple to learn, and easier to focus on finishing your game.

* Language Agnostic: Use any programming language, as long as it can compile to WebAssembly. Out of the box we currently support: AssemblyScript, C/C++, Rust, Go.

* Portable: WASM-4 is designed to run on any device that can execute WebAssembly, even outside of the web! We're planning a lightweight implementation written in C that will run even on a potato.

3.

Show HN: WASM-4 is a virtual game console with a WebAssembly CPU(wasm4.org ↗)

9 points · by aduros · 5y ago · 3 comments

comment 5y ago · link · parent

pjs is for filtering and transformation like awk/sed/grep, but it supports many different text-based formats and its programs are written in plain JavaScript.

Here's an example that converts a file to uppercase:

    cat file.txt | pjs '_.toUpperCase()'
It can also scrape websites using CSS selectors:

    curl https://aduros.com | pjs --html 'h1,h2' '_.text'
And JSON using jq filters:

    cat database.json | pjs --json '.users[]' '_.age >= 21'
Lots more examples on the README/man page. It's still quite new and may have bugs, if you find one let me know!

5.

Show HN: Pjs is an Awk-like CLI for processing textual formats with JavaScript(github.com ↗)

3 points · by aduros · 5y ago · 1 comment

comment 5y ago · link · parent

It opens in the current directory, not just home.

comment 5y ago · link · parent

Proud xeyes user here.

Have you tried duc for disk usage? It's minimal and has a nice visualizer.

comment 5y ago · link · parent

Very handy, thanks!

comment 5y ago · link · parent

Try this:

    XTerm.vt100.translations: #override \n\
        Ctrl <Key>T: spawn-new-terminal()

comment 15y ago · link · parent

I work for a company that primarily uses LOLCODE. I've been trying to convince my boss of the benefits of moving to Trollscript, so I wrote this Trollscript interpreter in LOLCODE: https://github.com/aduros/trollcat