Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
WarDaft
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
WarDaft
9y ago
Actually that's not true. Now that we have Phantheck, all QuickCheck tests (which are a very pleasant superclass of unit tests) can just be lifted to the type level with TH magic. This makes them dramatically more useful. This is becau
2.
▲
by
WarDaft
9y ago
Well, you can add operators, though you almost certainly should think about more idiomatic solutions first, it's entirely possible to write operators to allow a statement like: arr .~ (i,j) .= arr ! (a,b) + arr ! (x,y) You make
3.
▲
by
WarDaft
9y ago
That's not really a line for line port. Or even block for block since yours is never uninitialized. The original code was designed to basically mimic writing bad C in Perl, with an uninitialised array that you then explicitly looped ov
4.
▲
by
WarDaft
10y ago
There are already some quite advanced compilers that treat JavaScript itself as just a web assembly language, you don't technically have to wait for WebAssembly. TypeScript (some type safety) PureScript (Lots of type safety) and GHCJS