Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lf-non
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
lf-non
3y ago
Hmm ... to each their own I guess. But while developing backends with Kotlin I attempted to ditch all annotation/reflection/code-generation based libraries for a while, opting for functional libraries like ktor, exposed etc. But t
62.
▲
by
lf-non
3y ago
They don't use electron but they do seem to use webviews for showing the rendered output.
63.
▲
by
lf-non
3y ago
Unlike obsidian, it doesn't appear to have a plugin system (yet?)
64.
▲
by
lf-non
3y ago
Gleam looks very interesting. However I don't see any support for annotations (metadata based code generation) or reflection. I am curious if these are things that just haven't been implemented yet or it is an explicit goal to avo
65.
▲
by
lf-non
3y ago
Ah, I was not aware of extension traits. Thanks for pointing out.
66.
▲
by
lf-non
3y ago
I'd get what I import (explicitly). If I import conflicting extensions then its my fault for doing so and (only) my program fails to compile.
67.
▲
by
lf-non
3y ago
Yeah I found it somewhat surprising too. Coming from kotlin I had expected this to be similar to extension methods but apparently not. I never fully understood the motivation behind this restriction.
68.
▲
by
lf-non
3y ago
Why would you bluntly assume my comment lacks any foresight? I was simply recommending you a tool that I used, albeit briefly, that solves the exact the same problem for which you are claiming no solution exists. Nobody is denying that it w
69.
▲
by
lf-non
3y ago
> There's nothing like a shinkwrap/lockfile in python Use poetry? I don't program in python regularly but looking at the github repo it seems actively maintained and quite popular. https://python-poetry.org
70.
▲
by
lf-non
3y ago
Your solution is awesome. Thanks for sharing. Love the indentation based DSL - this looks very intuitive. I do a lot of quick sketches with excalidraw but I easily see wiretext-code replacing that with a better workflow where I can extract
71.
▲
by
lf-non
3y ago
If I want to do something like initialize codemirror when my component attaches to dom, I need an event/hook for that. I can't do that solely based on state subscription?
72.
▲
by
lf-non
3y ago
Tangential, but the default breeze theme of KDE plasma desktop is really good. I want to thank everyone who worked on that. That was the first OS theme I looked at and thought ok - system ui is a solved problem for me now. I have completely
73.
▲
by
lf-non
3y ago
The library looks nice dx wise but complete lack of any lifecycle hooks is a bummer. I get that minimalism is the core theme but to use any js ui lib that is not explicitly built around the same reactivity model you need to hook into compon
74.
▲
by
lf-non
3y ago
I don't think that would fall within the scope of a utility like cog. I wrote a minimal tool long back which I used to extract parts of code from my test suite as json which I could then use within my documentation generator to embed t
75.
▲
by
lf-non
3y ago
The free online book nimprogrammingbook.com has chapters on templates [1] and macros [2] which explain them with nice examples. From what I gather from the D docs (which I have only casually browsed through), the kind of adhoc ast construct
76.
▲
by
lf-non
3y ago
The nim language appears to have better gc and metaprogramming support while also offering most of the other advantages that D touts. If someone more experienced in D could offer any insights around why someone should prefer D over nim for
77.
▲
by
lf-non
3y ago
Stream operations can be defined ostensibly in any lang. that compiles to wasm, enabling polyglot stream processing.
78.
▲
by
lf-non
3y ago
I don't know why you would consider JS/TS backends to be niche - they are fairly mainstream by this time. You also need to distinguish between larger frameworks and compile-to-js/wasm languages here. As for the rest, I think
79.
▲
by
lf-non
3y ago
Oh I wish more languages adopted this. It is nice to be able to name the externally visible parameters such that the invocation is natural to read (eg. DB.select(~from: userTable)), but it is better to have more explicit names on the implem
80.
▲
by
lf-non
3y ago
The daScript repo [1] in the same org is quite interesting in its own right and makes some ambitious claims to performance [2]. [1] https://github.com/GaijinEntertainment/daScript [2] https://dascript.org&#x
81.
▲
by
lf-non
3y ago
> It's like every other framework is slowly rediscovering why React made the decisions it made Nope. More like every other framework is slowly rediscovering that observables and dependency tracking offers the best DX and most of the
82.
▲
by
lf-non
3y ago
Nobody is advocating for synchronously importable modules in browsers. Also, people had already written support utilities like require1k [1] to support cjs in browsers. We don't necessarily need a full bundler - we only need a module a
83.
▲
by
lf-non
3y ago
ESM has dual syntax for static and dynamic imports too. What I am saying is that import Foo from "foo" could be sematically equivalent to const Foo = require("foo") and const Foo = await import("foo") could be
84.
▲
by
lf-non
3y ago
You could get those benefits through special syntax that chose to not deviate from commonjs semantics. We are in this mess because tc39 explicitly chose to not give a damn about nodejs ecosystem. None of the secondary benefits of ESM to com
85.
▲
by
lf-non
3y ago
This looks pretty nice. Would you be interested in reviving this to target type-safe ts ? I have been looking forward to a type-safe coffee-script. Civet.dev comes close but goes into some pretty esoteric directions.
86.
▲
by
lf-non
3y ago
Let's instead have the english speaking community switch to a devanagari alphabet based writing system. It is so much more comprehensive - you never have to fumble about with the right way to pronounce something. Any particular combina
87.
▲
by
lf-non
3y ago
Sideberry is a cool extension that I used for quite some time when FF was my primary browser. I have since switched to Vivaldi which has similar feature built in which works pretty well too.
88.
▲
by
lf-non
3y ago
Oh, my bad. Sorry. From the focus on education and the name I assumed it was an lms
89.
▲
by
lf-non
3y ago
There is a (hillariously named) alternative noodle [1] that aims to compete in this space. It is under development but looks polished. [1] https://noodle.run
90.
▲
by
lf-non
3y ago
We use this to trigger local tasks (like build, codegen, db migrations etc.) in our monorepo. We moved to it because our npm scripts were getting messier in absense of task dependencies, lack of multiline support, comments in json etc. Bein
More ›