Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
danielearwicker
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
1.
▲
by
danielearwicker
1y ago
Java approach: create the JVM to support one language, so it has rich high-level concepts that are unfortunately skewed toward certain assumptions about language design, and it can be reused only for other languages that are similar enough.
2.
▲
by
danielearwicker
5y ago
In TS this is controllable. If noEmitOnError is true, then any error (including type errors) will stop it emitting JS output.
3.
▲
by
danielearwicker
6y ago
I think of probability as a summary of the structure/symmetries in a model. A model of a jar of red and blue beads is characterised by the ratio of red to blue, and that beads are only distinguished by colour.
4.
▲
by
danielearwicker
6y ago
It ought to be possible for the page to disable JavaScript with a meta tag: <meta name="noscript"> The browser could put an extra icon next to the https padlock so the user would know they were viewing a document rath
5.
▲
by
danielearwicker
6y ago
This must be the most unnecessarily awkward way of doing it (have to do it from the console after navigating to the site, so the request is allowed). fetch("https://heydonworks.com").then(x => x.text()).then(x =
6.
▲
by
danielearwicker
7y ago
That future possibiilty reminds me of https://en.wikipedia.org/wiki/Singularity_(operating_system) - where process/address-space isolation was replaced with fine-grained static verification of high-level code (pre
7.
▲
by
danielearwicker
9y ago
I developed a kind of meta programming pattern and supporting library, based on Redux, called Immuto, to get absolute and complete static typing (via TypeScript) and minimal boilerplate, also referentiality and modularity (cursors that acce
8.
▲
by
danielearwicker
10y ago
Odd. Erlang uses GC.
9.
▲
by
danielearwicker
10y ago
It's very likely that JS will adopt some things tried initially in TS. Both TS and Babel have implemented extensions to the class syntax, for example, which are being considered for JS-future.
10.
▲
by
danielearwicker
10y ago
Interesting last line in that presentation: "Flow written in OCaml, Typescript in Typescript"
11.
▲
by
danielearwicker
10y ago
You may be traumatised if you ever hear Crockford talk about JavaScript!
12.
▲
by
danielearwicker
10y ago
Not sure how well this analysis explains Facebook's widespread use of React.
13.
▲
by
danielearwicker
10y ago
Definitely an aim of TS to make it easier to continue using JS for those who prefer a half-way house, see: https://github.com/Microsoft/TypeScript/issues/4789
14.
▲
by
danielearwicker
10y ago
The example you give has been supported since day 1. Example: document.createElement("canvas") returns HTMLCanvasElement. A limited form of string literal types has always been supported specifically for overloading return types.
15.
▲
by
danielearwicker
10y ago
I've been playing with https://github.com/danielearwicker/doop
16.
▲
by
danielearwicker
12y ago
+1 Knockout is a treasure chest of powerful patterns from remarkably few core concepts.
17.
▲
by
danielearwicker
12y ago
Thanks for the plug! Caveat: Carota does not solve Right-To-Left text or complex scripts, and I'd really appreciate help with that. It's the only blocking issue against me using it in my main work project. (By a strange coincidenc