Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uryga
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
271.
▲
by
uryga
6y ago
i don't have and concrete UX recommendations, but for me (a casual Office user) it always somehow manages to show both too much and too little... i.e. there's this distracting mess of buttons and fields on the top bar, but i still
272.
▲
by
uryga
6y ago
> what actually made their favourite guest language possible to exist. maybe i'm arguing semantics, but i don't think it's fair to say that the JVM "made Clojure possible" -- that's like saying "C made
273.
▲
by
uryga
6y ago
i'm on the fence about this... i don't love type coercions, but (!!x) is nice because you don't have to stop and check - was it (x ? 1 : 0) or (x ? 0 : 1), (x !=0) or (x==0)? i think arthur whitney said something in the vein
274.
▲
by
uryga
7y ago
not related to the article itself, but Church (or Scott) encoding is, to me, one of the most eye-opening FP concepts – in order to describe a data type, you just write the way it can be pattern-matched on. and that's essentially descri
275.
▲
by
uryga
7y ago
just, y'know, computing! sure i know i won't be watching videos, but anything else you'd do on a normal computer. because i like e-ink screens :) i don't think the refresh rate comment is fair - he mentioned the lag when
276.
▲
by
uryga
7y ago
the Technology Connections yt channel has an experience report about the Onyx Boox Max 2 tablet (13.3 inch): https://youtu.be/7NfX0vlCa4k tldw: it's not great for non-ereader tasks. the display is fine, but the tablet
277.
▲
by
uryga
7y ago
ah sorry, the naming threw me off. TIL you can manipulate/compile ASTs in C#! https://docs.microsoft.com/en-us/dotnet/api/system.linq.expr... i guess all the macro stuff is under System.Linq.Expressions
278.
▲
by
uryga
7y ago
yeah, that's what i meant by "linear" (as in linear types, similar to rust's ownership stuff, just terminology i'm more familiar with)
279.
▲
by
uryga
7y ago
sorry but idg how are bats relevant to the kind of planet-scale immunity you mentioned
280.
▲
by
uryga
7y ago
sorry but did we read the same article? how's compiling brainfuck into Julia via macros related to LINQ?
281.
▲
by
uryga
7y ago
> Maybe just like we have antibodies the earth has antibodies to get rid of pollution i'm curious, why would it? is (or was) there something to encourage the Earth to develop "antibodies", like evolutionary pressure for li
282.
▲
by
uryga
7y ago
i use pure functions wherever i can, but is this always the right approach when dealing with large dataframes? i imagine when you're chaining a few methods, it'd generate a large number of intermediate results that immediately get
283.
▲
by
uryga
7y ago
whoops, meant to write: i'd say your js qualifies as "vanilla" in the first paragraph, can't edit anymore
284.
▲
by
uryga
7y ago
i'm sure it means many things to many people :) obv i only speak myself here ignoring framework stuff (bc everyone seems to agree there) i'd say if your js qualifies as "vanilla" if it can run in a relatively recent br
285.
▲
by
uryga
7y ago
true, it doesn't. but imo when people say "vanilla js" they mean both no framework to abstract DOM manipulation and no build steps, whether they be transpiling from ES7 or bundling stuff. perhaps webpack can be used to ju
286.
▲
by
uryga
7y ago
i use that style too sometimes, depends on what's clearer. IME the former usually works better if you have a multiple tests, but the latter is the only readable option if you need to break a case across lines. yeah, ternary-if is buste
287.
▲
by
uryga
7y ago
yeah, so is git. would it make sense to say "So I guess using Git isn’t vanilla either cause it’s not part of the language spec?" ? my point is, i can't understand why you would bring VSCode up at all in a discussion about w
288.
▲
by
uryga
7y ago
how are an editor and a code preprocessor comparable here? they serve entirely different purposes, unless you stretch "producing code" reaally far
289.
▲
by
uryga
7y ago
honestly? i like it. properly formatted it looks alright: return ( (cellA === cellB) ? 0 : (cellA > cellB) ? 1 : -1 ); and it's an expression, so i immediately know it won't do any weird control
290.
▲
by
uryga
7y ago
the "nondeterminism" here doesn't mean we're dealing with probabilities, it's a more discrete kind - it just means that instead of S1 --a--> S2 you can have S1 --a--> S2 '--a--> S3 &
291.
▲
by
uryga
7y ago
that's known as an NFA (Nondeterministic Finite Automaton), a variant of FSMs.
292.
▲
by
uryga
7y ago
oh huh! not sure how that happened. here: https://colors.lol/outward-bound
293.
▲
by
uryga
7y ago
> it would be difficult to tell which python expressions are evaluated at the moment of a conversion definition AND which in the compiled code this is ofc a valid concern in any metaprogramming situation. has this been a problem in your
294.
▲
by
uryga
7y ago
if the author(s) are reading this, the names seem to have gotten switched around on this one: https://colors.lol/outward- outward-bound slate grey #F19E8E unstatesmanlike reddish grey #98756F cross-sectional b
295.
▲
by
uryga
7y ago
sounds interesting, i'll have a look at the code when i have time. i've mostly done compiler stuff like this with the "one function with a huge switch on the expression type" approach, curious to see what the more OOP-is
296.
▲
by
uryga
7y ago
looks really cool! congrats, seems like a lot of work went into this, and code generation is always fun. i do have some feedback about the readme though... maybe i'm not the intended audience, but the examples didn't work great fo
297.
▲
by
uryga
7y ago
"3 apples" is just a rough (though often useful!) and very context-dependent abstraction anyway. real-world apples differ in size, so you might want to count a small apple as half an apple; and does a big "twin"/&qu
298.
▲
by
uryga
7y ago
couldn't this be said about any language with an interpreter? or do you have some lisp-specific feature in mind?
299.
▲
by
uryga
7y ago
> I can have very different words for a character (char, "", etc.) but in my head they take exactly the same amount of space. how sure are you? given how little we know about the brain, i'd be cautious with asserting somet
300.
▲
by
uryga
7y ago
existential types allow you to make it dynamic. see https://wiki.haskell.org/Existential_type , there's a section comparing it to OOP-style dynamic dispatch simple example copied from the linked article: data Obj =
More ›