News for hackers. Stuff that matters.

dragostis

Re:Show HN: forma: An efficient vector-graphics renderer on Friday December 16, 2022 @05:48PM (#34021696)
It's quite easy to get the CPU back-end running with WASM. GPU might work as well with Chrome Canary, but I haven't tested it yet. Using WebGPU should make this just as easy.
Re:Show HN: forma: An efficient vector-graphics renderer on Friday December 16, 2022 @05:44PM (#34021638)
A pixel segment is a line segment that fits inside of a pixel's square box. It can start and end anywhere inside of this 1x1 square box and it has a 64bit compact representation.
Re:Show HN: forma: An efficient vector-graphics renderer on Friday December 16, 2022 @11:52AM (#34016848)
Thank you for the endorsement. Looking forward to collaborating more with you on 2D graphics.
Re:Show HN: forma: An efficient vector-graphics renderer on Friday December 16, 2022 @11:27AM (#34016470)
forma is geared towards vector-graphics heavy use cases. A very good example would be Lottie or Rive animations or games that make use of vector graphics. Another possible use case would be places where you need a very small software renderer, like an OS's early boot.
Re:Show HN: Pest – Fast parser generator written in Rust on Sunday August 27, 2017 @04:30PM (#15112553)
I've added a clarification. The point of the benchmark is not to compete with other projects, it's merely there to put the parsing speed (and not necessarily the processing that comes after it) in a representative window of performance.
Re:Show HN: Pest – Fast parser generator written in Rust on Sunday August 27, 2017 @04:19PM (#15112497)
I agree with your point. I tried my best not to sway too far off of some of syntax I've seen in other PEG projects, while also keeping it compatible with Rust's standard macros. While pest does have this constraint any longer with the new beta, changing the grammar too much would have been a nuisance for anyone who had grammars written in the older versions.
Re:Show HN: Pest – Fast parser generator written in Rust on Sunday August 27, 2017 @04:10PM (#15112450)
I agree. I guess I was trying hard to suggest the fact that it can be used _with_ Rust and not the fact that it is written _in_ Rust.
Re:Show HN: Pest – Fast parser generator written in Rust on Sunday August 27, 2017 @04:07PM (#15112436)
A good place to start would be in the manually written example. [1] My current plan is to try and limit the the use of memoization such that it still guarantees linear parsing, but it doesn't memoize unless necessary.

[1]: https://github.com/pest-parser/pest/blob/master/pest/example...

Re:Show HN: Pest – Fast parser generator written in Rust on Sunday August 27, 2017 @03:50PM (#15112349)
For now, it produces a recursive descent parser. Packrat parsing is an open-question since I'm afraid that adding a memoization layer all throughout the parser will lead to a consistent general slowdown.
There is a WIP php parser developed by the community: https://github.com/steffengy/pesty-php/blob/master/src/parse...

And, yes, it does support multi-stage parsing. After the tokens are generated, there is a process! macro which handles them. This is where you can produce an AST.

I'm currently working on a parser generator with easy of use and performance in mind.

https://github.com/dragostis/pest

Older »