News for hackers. Stuff that matters.

voodooattack

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!

Re:Introducing Nexus.js: A multi-threaded JavaScript run-time on Saturday December 09, 2017 @01:00PM (#15887023)
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.

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.
Try writing a raytracer using a single thread, now try again with multiple threads working in tandem.

Trust me, I tried.

Re:Anyone interested in coroutines for JavaScript? on Saturday April 09, 2016 @11:05PM (#11464667)
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.
Re:Anyone interested in coroutines for JavaScript? on Saturday April 09, 2016 @08:52PM (#11464222)
Yeah, they're all executing on different cores.
Re:Ask HN: Egyptian Startup Woes on Tuesday October 20, 2015 @04:43PM (#10421677)
We said no, the lawyer told him so, he asked for direct contact details and we haven't heard anything from him yet.

Ask HN: Egyptian Startup Woes

I've been a long time lurker of HN, and something happened today that drove me to register and post this.My partner and I are working on a big project that will hopefully change the way Egyptians and the Middle East in general use the internet. I will not mention what, because the idea is just that good.I'm the technical mind behind the project, while my partner and best friend handles the...

( Read More... | 2 comments | 2 points | on HN )