Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kuramitropolis
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
kuramitropolis
4y ago
Hey! First of all, thanks for all your hard work on Ardour! Just like you, I decided not to use Windows for my media production workflow some years ago, and set out on a journey that has been as much enlightening as frustrating. I've u
92.
▲
by
kuramitropolis
4y ago
2 glued transistors + thermistor in the middle = "tempco" (temperature compensator). Used in VCOs to compensate for frequency changes brought by ambient temperature changes. Maybe the backlight is PWM-based?
93.
▲
by
kuramitropolis
4y ago
The censors' safe play is also well known: Introduce mandatory "what did the author mean" classes in schools, where children write down the one true interpretation of a corpus of sanctioned texts from preferably >100 year
94.
▲
by
kuramitropolis
4y ago
Experimenting on people. It's the new sex, drugs, and rock'n'roll revolution, delivered straight to your optic nerve, so get with it. They already got the monitoring and analytics in place - ain't no regulator got suffic
95.
▲
Hegel – An advanced static type checker for JavaScript
(hegel.js.org)
96 points
by
kuramitropolis
4y ago
|
75 comments
96.
▲
by
kuramitropolis
4y ago
>Thankfully they’re actively working to address that now. Where? The response I saw on GitHub issues (to the few people who considered it worthwhile to be vocal about the issue) was literally (well, paraphrased): "yeah we did this w
97.
▲
by
kuramitropolis
4y ago
>I guess your post might have been received better You assume that I'm primarily optimizing for that. I optimize for being able to express my opinion in sufficient detail that people actually bother to try to show me things that I d
98.
▲
by
kuramitropolis
4y ago
I'm not even talking about the module support. (It just seems to have the default support of TypeScript.) Yes, it imports the module. No, it doesn't do even basic type inference (knowing that Foo is a class and consequently allowi
99.
▲
by
kuramitropolis
4y ago
Okay... $ echo "export class Foo { a = 1 }" > test.mjs $ npx ts-node > import('./test.mjs').then(console.log) error TS7016: Could not find a declaration file for module './test.m
100.
▲
by
kuramitropolis
4y ago
>you can’t have explicit type defs without explicit defining them somewhere Sure, as long as I have to define them once and exactly once . Not always possible, as in the case of simple, garden-variety keyword arguments. //
101.
▲
by
kuramitropolis
4y ago
>There is no way to export a Go struct for consumption via FFI, for instance. I hope not. >Using TS, you can import any valid JS module without any special preparation Why does the DTS ecosystem exist then ( https://www.npmj
102.
▲
by
kuramitropolis
4y ago
> 10542667 Aug 9 20:40 node_modules/typescript/lib/typescript.js aint fitting ten megs in a peek view... :(
103.
▲
by
kuramitropolis
4y ago
>your definition of a “sane” developer is not as universal as you may have thought Where I'm from, sanity has historically been the minority opinion, so we don't really have a word for this, but I think the English one is... &q
104.
▲
by
kuramitropolis
4y ago
JSX is also not TS at all, yet it gets preferential treatment (TSX). Unlike JSX/TSX, the TypeScript used by Vue is just TypeScript - wrapped in a tag next to some other stuff, so you know where the part you need to type check starts
105.
▲
by
kuramitropolis
4y ago
>You’re right on the first Strictly speaking, it takes exactly one such behavior (that you cannot even disable) for TS to stop being a superset of JS. >although classes are out of fashion, so this is low impact Looking at the TSC
106.
▲
by
kuramitropolis
4y ago
>At the moment vscode only checks files that are currently open While TSC checks everything by default - even files that are not even part of the dependency graph. That's how great the "great tooling" is in reality. >I
107.
▲
by
kuramitropolis
4y ago
No, cringing at some "helpful" popup appearing right over the previous line of code. If anything, they could've made it appear under the current line; code's still written top to bottom so it's less likely for &
108.
▲
by
kuramitropolis
4y ago
For one, try redefining a property as a getter/setter pair in a subclass. Also, try implementing a function that takes keyword arguments, some of which are required, and some of which have default values. I'll wait. When you'
109.
▲
by
kuramitropolis
4y ago
Yes, it also comes delivered as several near-identical builds for different contexts, each of which is nearly non-extensible. Have you seen the kind of monkey patching Volar (Vue tooling) does to enable type checking of TypeScript embedded
110.
▲
by
kuramitropolis
4y ago
> great tooling "go to definition" -> goes to type definition Microsoft makes it intentionally impossible to get anything done in their ecosystem without having "great tooling".
111.
▲
by
kuramitropolis
4y ago
>Incremental adoption i.e. "it stays out of your way if you don't actually try to use it"
112.
▲
by
kuramitropolis
4y ago
I.e. cringing all the time?
113.
▲
by
kuramitropolis
4y ago
Someone please make WASM source maps JustWork!
114.
▲
by
kuramitropolis
4y ago
Is "pork"? There's a layer of English that has decidedly Germanic origins; see also "legal doublets".
115.
▲
by
kuramitropolis
4y ago
And then you have to contribute to a codebase with restrictive ESLint (bleurgh!) configuration, so you can't even try out whether your code works because the tooling disallows you from compiling it as long as it contains "any&qu
116.
▲
by
kuramitropolis
4y ago
TS is emphatically not a superset of JS. It rejects perfectly valid JS leaving you no recourse other than design your whole architecture around what TypeScript allows. Which is what Microsoft wants of course.
117.
▲
by
kuramitropolis
4y ago
Opposite experience. Rust was my stepping stone into "hey, maybe JS will be better with some degree of static typing?" Yes it would. But not the way TypeScript does it though, and there aren't any other viable options, are th
118.
▲
by
kuramitropolis
4y ago
...as optional hints that don't require you to buy into a whole new toolchain.
119.
▲
by
kuramitropolis
4y ago
My project is small but TS takes 4-5 seconds to compile it from scratch on each run. The main speed impact is in developer productivity though. If something ain't working right, now I first gotta fix the types before I can see if I
120.
▲
by
kuramitropolis
4y ago
Worse than useless.
More ›