Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shirogane86x
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
shirogane86x
5mo ago
I think the lisp situation is peculiar, for 3 main reasons: - most of them are dynamically typed (thus don't need sum types, as there are no types). The ones that do have gradual type systems likely either implement some form of them (
2.
▲
by
shirogane86x
9mo ago
but how would you do that otherwise? Genuinely curious cause I looked up both the go docs and source (disclaimer: not a go dev), and there doesn't seem a way to handle that specific kind of error through stuff like `errors.Is`, at leas
3.
▲
by
shirogane86x
10mo ago
At least half of those languages (Elixir and OCaml) have some sort of mechanism for ad hoc polymorphism (elixir has behaviors and protocols, OCaml has higher order modules) so I feel like the comparison doesn't work that well personall
4.
▲
by
shirogane86x
2y ago
From how you describe it, it sounds like it's taken the same approach as Haskell's async exceptions + mask/uninterruptibleMask, which to me seems like one of the best solutions around, so props to them
5.
▲
by
shirogane86x
2y ago
Haskell also has something like this in Debug.Trace.trace: even though it's _technically_ impure (cause it outputs to stdout), it's typed as a pure function because it's just for debugging (I think internally it uses an escap
6.
▲
by
shirogane86x
3y ago
Is there a way to emit WebAssembly with Uniffi? I looked for it before, but I couldn't find it (I'm using it in a project to share login between the backend and Kotlin/Swift apps. I wanted to share it with JS for a web fronte
7.
▲
by
shirogane86x
3y ago
I think, from having it used recently, that supabase's TS library does this. I had to write a wrapper around it a few months ago at $dayjob and was really surprised when select/from parts of a "query" (not really a SQL q
8.
▲
by
shirogane86x
3y ago
I have no idea where you get that acceptance of same sex marriage arises from Christian ideas. Because in my personal experience it really doesn't. I live in Italy and a lot of discrimination against gay people (me included), and a big
9.
▲
by
shirogane86x
3y ago
Does it? I haven't used much ocaml and I haven't used Haskell in a while, but as I remember it all IO is already non blocking in Haskell, and the async library gives you the most painless async experience I've ever seen in an
10.
▲
by
shirogane86x
3y ago
At $dayjob right now I'm using remix+supabase (although the supabase part is going away, but we're keeping postgrest). I have to say I quite enjoy it. DevEx seems good (although we've added quite a bit of our own logic on top
11.
▲
by
shirogane86x
3y ago
I've had many cases in the past (not in go) where I've had to make use of that exact same function (in typescript, in F#, and in C#). it is actually quite useful when doing any amount of data manipulation (map/filter/red
12.
▲
by
shirogane86x
3y ago
I am pretty sure iOS has way less than 50% market share globally? So if your target audience is global I am guessing you lose less, on average
13.
▲
by
shirogane86x
3y ago
To be honest I think the opinion was always generally divided. In my personal experience in the community, gen III and IV seemed to be the most popular, with significant but smaller sections of the community enjoying Gen I, V and II. I have
14.
▲
by
shirogane86x
3y ago
- the games were very buggy - gen 1 pokemon are very basic and probably some of the worst in the series (subjective) - the games are extremely unbalanced, and many types have only one evolution line while others have a lot, there's no
15.
▲
by
shirogane86x
3y ago
I think you don't even need to type out the whole option, just the first few letters most of the time? I haven't used PowerShell in a bit, but I think if you have a command with a -Force option, but just type -f, it will go throug
16.
▲
by
shirogane86x
3y ago
To be honest, not most of them. It took until GBA era to get some decent mainline games, and the series probably peaked around DS era, both mainline and spin offs. Gen 1 and 2 have so many flaws that make them age really badly
17.
▲
by
shirogane86x
3y ago
As someone who kept playing Pokemon (and who has casually played online matches since gen 4) the game did change... But not in good ways. The mechanics and the balance got better (even if power creep is a very real thing). In fact, going ba
18.
▲
by
shirogane86x
3y ago
For simple interactive usage aliases go a long way, and with tab completion it gets really fast to write. For example, Invoke-WebRequest is iwr, Select-Object I think is just select. Some others are ForEach-Object which is %, and Where-Obje
19.
▲
by
shirogane86x
3y ago
Re: the splitting the body part, that's usually what I do. When I have to review code that doesn't fit in my brain I just end up checking out the code locally and aggressively splitting it into different functions (sometimes even
20.
▲
by
shirogane86x
3y ago
Genuine question, as someone who is approaching the 10 year anniversary of working in the industry: how do you deal with the inherent verbosity and bare-ness that come with that level of simplicity? To this day, loops that aren't of th
21.
▲
by
shirogane86x
3y ago
I looked around to see if that was the case and couldn't find any indication of it, but if it's true I might just try it out again in the future (however distant that future may be) because apart from the lack of metaprogramming I
22.
▲
by
shirogane86x
3y ago
Gleam looks really nice but unfortunately the complete lack of metaprogramming of any kind makes it a non-starter for me personally. I still hope it succeeds though, the BEAM is a really nice platform and maybe having a statically typed lan
23.
▲
by
shirogane86x
3y ago
You can recover the ability to reorder effects by using MTL-style type classes, so you could write that as M<T> where M: MonadState<S> + MonadError<E>, in rust-ish syntax. But that makes the number of trait/typeclass
24.
▲
by
shirogane86x
3y ago
I always felt like it was kind of the other way around? Speaking from experience , most languages where immutability is the default and/or the only option can usually simulate mutability or have it as a stdlib-provided escape hatch (el
25.
▲
by
shirogane86x
3y ago
As someone who worked in a decently sized company working on a software product written with TS/HTML/SCSS (at least we had those) and jQuery: no, absolutely not. as the apps get big, state becomes a mess, fully reusing code is ver
26.
▲
by
shirogane86x
3y ago
I mean, Svelte/store is something completely different though, isn't it? it's more akin to Jotai/Zustand/Redux and friends than it is to hooks. If you had to compare Svelte with React, the thing "closest"
27.
▲
by
shirogane86x
3y ago
Along the lines of what another user said, you can actually get this a lot shorter. given variables $haystack and $needle, this actually becomes $haystack | lines | where $it =~ $needle which, albeit maybe not as concise as the gr
28.
▲
by
shirogane86x
3y ago
I have used it quite a few times because I have a quite a low spec PC, and being able to limit the browser performance + watch a video with picture-in-picture while playing games is very nice. I recently got back into it, downloaded it on m
29.
▲
by
shirogane86x
4y ago
As someone who worked with F# professionally for multiple years, I think I can quite confidently say that laziness is not ergonomic in F#, at all. I've tried making use of it many times, but because you have to explicitly delay and for
30.
▲
by
shirogane86x
4y ago
This sounds really interesting (and also eerily similar to haskell's Coercible and roles), is there any material on the matter somewhere? I'd love to see what solution they're thinking of working towards, seeing as this is a
More ›