Better HN
topnewbestaskshowjobs
Log inSign up

voodooattack

35 karma · joined Oct 20, 2015 (11y ago) · 30 submissions

Submissions

comment 3y ago · link · parent

This is something I have been working on as part of a larger project where we use it for programmatic test generation. This extended syntax allows the inclusion of type information within a document.

This means that after parsing, a user-defined deserializer can pick up the raw value and do anything with it (whatever it returns is included in the output of `parse`), and that a user-defined validator can allow or reject it with an error.

Documentation (mainly for deserializers/validators) is currently sparse since I'm somewhat busy with a deadline, the tests have many examples though. I plan to expand on it later.

Here is a glance at what it looks like: ``` { x: date "2001-01-01", // it can handle custom deserializers! y: 123n, // it can handle `BigInt` out of the box! z: /^I\sCAN\sPARSE\sREGEX$/im, // ...and also regular expressions! w: undefined, // ...and even `undefined`! } ```

There are more examples on GitHub!

2.

Show HN: TxJSON – An extension of JSON5 with rich inline type information(npmjs.com ↗)

3 points · by voodooattack · 3y ago · 1 comment

3.

Show HN: Kerneltool – A Ubuntu mainline kernel installer(github.com ↗)

3 points · by voodooattack · 4y ago · discuss

4.

Rhymepy: Highlight Rhymes in a Given Text(github.com ↗)

1 points · by voodooattack · 6y ago · discuss

5.

When – event-based recombinant state machines with a temporal model(github.com ↗)

4 points · by voodooattack · 8y ago · discuss

6.

Why I turned down a job opportunity from Amazon last year(dev.to ↗)

5 points · by voodooattack · 8y ago · discuss

7.

Show HN: My software design pattern for state machines based on gene expression(github.com ↗)

10 points · by voodooattack · 8y ago · discuss

8.

The Magineer: A web-serial about programmable magic(themagineer.com ↗)

8 points · by voodooattack · 8y ago · 1 comment

comment 8y ago · link · parent

I use CLion, I intentionally edited the Java VM settings to allow it to consume more memory.

It takes forever to analyse symbols for WebKit otherwise. WebKit is too massive to handle with the default memory limits.

10.

Introducing Nexus.js: A multi-threaded JavaScript run-time(dev.to ↗)

6 points · by voodooattack · 8y ago · 2 comments

11.

Show HN: A Critter's Life: Collaborative Evolution in the Browser(critters.life ↗)

4 points · by voodooattack · 9y ago · discuss

12.

Concurrent JavaScript VI: Server(medium.com ↗)

1 points · by voodooattack · 10y ago · discuss

13.

Concurrent JavaScript: Part V – The Mantra(medium.com ↗)

3 points · by voodooattack · 10y ago · discuss

14.

Concurrent JavaScript – Part IV: Madness(medium.com ↗)

2 points · by voodooattack · 10y ago · discuss

15.

Concurrent JavaScript – Part III: Events(medium.com ↗)

3 points · by voodooattack · 10y ago · discuss

16.

Concurrent JavaScript – Part II: Input/Output(medium.com ↗)

2 points · by voodooattack · 10y ago · discuss

17.

Concurrent JavaScript – Introduction(medium.com ↗)

2 points · by voodooattack · 10y ago · discuss

comment 10y ago · link · parent

That's exactly what I'm trying to change. JavaScript should be the right tool for that level of performance. It has JIT compilers, now it needs concurrency, and it'll perform with the best of them.

comment 10y ago · link · parent

Try writing a raytracer using a single thread, now try again with multiple threads working in tandem.

Trust me, I tried.

20.

Why are programmers dead set against my concurrent Node.js runtime?(programmers.stackexchange.com ↗)

30 points · by voodooattack · 10y ago · 13 comments

comment 10y ago · link · parent

This happens when there is no synchronization involved, the engine is printing line endings in a separate operation, so they come out weird like that. I'll add a mutex locking mechanism on console I/O at some point in the future.

comment 10y ago · link · parent

Yeah, they're all executing on different cores.

23.

Anyone interested in coroutines for JavaScript?(dl.dropboxusercontent.com ↗)

1 points · by voodooattack · 10y ago · 5 comments

24.

Show HN: First business directory in the Middle East(arabian-guide.com ↗)

1 points · by voodooattack · 10y ago · discuss

25.

The Evolution of Buttons in UX Design(blogs.adobe.com ↗)

1 points · by voodooattack · 11y ago · discuss

26.

Envato moving to USA, Non-US authors to suffer(forums.envato.com ↗)

1 points · by voodooattack · 11y ago · discuss

comment 11y ago · link · parent

We said no, the lawyer told him so, he asked for direct contact details and we haven't heard anything from him yet.

28.

Ask HN: Egyptian Startup Woes

2 points · by voodooattack · 11y ago · 2 comments