Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wwwigham
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
wwwigham
8y ago
No, no - I definitely miss the autobundling. The auto bundling of github emails by repo is possible the only thing that's been keeping me sane, since I get a _lot_ of notification traffic, much of which I should read about, at least...
62.
▲
by
wwwigham
8y ago
This is just a guess, but since TS is structural and it's inference engine is based on pattern matching instead of constraint solving some of this already applies. Minimally, the generalized type traversal constructors described as a u
63.
▲
by
wwwigham
8y ago
The readability of the arrow seems unimportant, as it's primary use is, from what I can tell, to express a new kind of constraint which can then be produced by inference and used to typecheck a wider gamut of input code with more succi
64.
▲
by
wwwigham
8y ago
> null/undefined is an inhabitant of every type in typescript, I would suggest purescript instead. If you want absolute certainty in your types with TS, you should be using the `--strict` flag, which makes it so this is not the case
65.
▲
by
wwwigham
8y ago
> I went from "fast and convenient" with JS to constantly fighting against the TS compiler and linter above cryptic type errors Would you, perchance, be able to share an example of such an error? We generally strive to improve
66.
▲
by
wwwigham
8y ago
I really empathize with the community interaction aspects of these comments - having spent a few months triaging everything that comes into our (admittedly less organized) repo, I can very much understand. It can be truly draining to only s
67.
▲
by
wwwigham
8y ago
I got a reply here on hn awhile back with a similar question[1]. > Dart really is a big part of why the Flutter framework is as it is. Obviously you could design similar frameworks in other languages and have similar results, but there&#
68.
▲
by
wwwigham
8y ago
The TS team implemented the TS parsing support in Babel. You are correct that the TS compiler is still needed for the typechecker, however.
69.
▲
by
wwwigham
8y ago
Fragmentation yields a distribution of effort which yields theoretically inferior products, compared to the theoretical output of all the individual parts working towards the same goal. (Debatable, but we'll assume it.) Centralization
70.
▲
by
wwwigham
8y ago
Yeah. Typically it starts with a priority speaker giving a speech, ends with a Q&A moderated via text chat.
71.
▲
by
wwwigham
8y ago
> The type system is frankly disappointing, and the errors the compiler spits out at you (besides the most obvious ones) are almost always useless or gibberish and at times even more harmful than helpful. I'd love to see examples of
72.
▲
by
wwwigham
8y ago
> If you go all the way and make it sound with variance annotations Variance annotations aren't quite what would make the language (in strict mode) sound. Specifically, what makes it unsound is the `any` type (generally) and the lac
73.
▲
by
wwwigham
8y ago
> But I agree with your example of symbol in dict. I would be surprised if it isn't already on the roadmap. Have you tried reaching out to the typescript people? It's not just on the roadmap, it's in code review/itera
74.
▲
Lerna relicences to protest ICE
(github.com)
143 points
by
wwwigham
8y ago
|
151 comments
75.
▲
by
wwwigham
8y ago
JS took over not just because it ran everywhere but also because of the network effects of everyone learning it because it ran everywhere. wasm has no such benefits, as an intermediary format. Nobody's ever going to get a job as a &quo
76.
▲
by
wwwigham
9y ago
> I think my favorite part of this is that inevitably people will write type definitions for TensorFlow.js in TypeScript Actually, it already ships with typescript definitions - it's written in TypeScript![1] [1] https://
77.
▲
by
wwwigham
9y ago
> I'm excited to see Go trying something new here. "Semantic import versioning" is equivalent to versioned APIs in the web world, no? Though I have never seen anyone utilize the same concepts for language-level packages; i
78.
▲
by
wwwigham
9y ago
No, the efficacy of the direct GL canvas native bindings and the view composition architecture are why it's efficient. Yes, there's little runtime language overhead because it's AOT compiled, but that alone wouldn't caus
79.
▲
by
wwwigham
9y ago
> -Flutter renders the UI itself rather than using native components, so you get the same experience on both iOS and Android. I thought this was an antipattern in modern mobile device Dev, since you're supposed to make your app &quo
80.
▲
by
wwwigham
9y ago
The most attractive thing about flutter (compared to some other crossplat mobile UI frameworks) is the efficient underlying UI framework, so I'm sure if it starts to fail because of Dart they'll be able to eject that coupling and
81.
▲
by
wwwigham
9y ago
It's also probably not worth overtly begging the question of weather maintaining multiple languages within one project is worth the burden (seriously the full build for the `source-map` package is complex in comparison to the usual JS
82.
▲
by
wwwigham
9y ago
> Synaptics driver leaked memory whenever a process was created Funny! I found out the same issue last week and ended up just uninstalling the driver (not sure how permanent that is, but I'd like to think it is). I thought I was goi
83.
▲
by
wwwigham
9y ago
Much like casts and nonnull assertions. The general consensus is that you can enable a tslint rule to categorically forbid them.
84.
▲
by
wwwigham
9y ago
If you really like the idea of syntactic partial application in your JavaScript, you should check out the stage 1 tc39 proposal for exactly that: https://github.com/rbuckton/proposal-partial-application It's slowl
85.
▲
by
wwwigham
9y ago
We do use classes in the test harness, services layer, and to polyfill es6 Map. We just don't use them in the design of any compiler subsystems.
86.
▲
by
wwwigham
9y ago
I'm more impressed by the videos of the hand tracking around the keyboard than the tracker in the keyboard! Is that fidelity just using the Vive's outward facing camera? They don't show any tracking gloves in the mockups.
87.
▲
by
wwwigham
9y ago
Travis actually has this[1], too, if you ask their support to have the feature beta enabled for your repo. A while back, I was having a CI only test failure that was a massive pain to try and debug, and this helped enormously as I could exp
88.
▲
by
wwwigham
9y ago
Not to pry, but do you have a Java background? I see you're using the global 'Boolean' and 'String' interfaces in your examples (which correspond to the equivalent JavaScript constructor objects), rather than the &
89.
▲
by
wwwigham
9y ago
> It'd be interesting to hear everyone's go to build tools. A script written in whatever the primary language of the project is (usually with some library support), ideally; to reduce the minimum required knowledge to be a firs
90.
▲
by
wwwigham
9y ago
This is a decent, if space inefficient, implementation of an optimistically concurrent algorithm. The general idea is that all threads have the same "goal", so if one thread notices partial work done by another thread (in this cas
More ›