News for hackers. Stuff that matters.
Re:A Quick Comparison of Nim vs. Rust by gfasdgsfd on Tuesday January 13, 2015 @10:40PM (#8884135)
I'd guess that pulling that try-catch out of the loop would make things go much faster. Nim doesn't use 0-overhead exceptions, so setjmp needs to be called each time the try-catch is entered.

You should also use the re module, PEGs is not nearly as optimized as PCRE.

Re:A Quick Comparison of Nim vs. Rust by arthurtw on Wednesday January 14, 2015 @01:39AM (#8884708)
I’ll try that later, though the Nim version is fast enough after using -d:release flag.