Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vjerancrnjak
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
vjerancrnjak
1y ago
I have an exactly opposite preference. Give me a big change to review. Going commit by commit or any imposed steps is not how I write code or how I understand code. If you did not approach it through literate programming, I just prefer all
92.
▲
by
vjerancrnjak
1y ago
You can just inspect merge commits, you can also just bisect over merge commits. Splitting work into multiple PRs is unnecessary ritual. I have never reasoned about git history or paid attention to most commit messages or found any of it us
93.
▲
by
vjerancrnjak
1y ago
Once they identify you as a consistent winner with EV>0 they ban you from their business. Happens also with government owned gambling companies.
94.
▲
by
vjerancrnjak
1y ago
> You aren't forced into using async/await everywhere all the time. this sounds like 'a misuse of the interface, a lesson in interface design', etc Exactly, async-await does not allow you to create correct interfaces.
95.
▲
by
vjerancrnjak
1y ago
Async and threading are applied to similar problems, that's how I understood OP. `if (file_exists(f))` is misuse of the interface, a lesson in interface design, and a faulty pattern that's easy to repeat with async-await. > I d
96.
▲
by
vjerancrnjak
1y ago
I don't see how try-catch promotes single responsibility principle. I feel like this principle is just arbitrary. If I have Result<Error, Value> and I change the Error, I have to change all places that are using the Error type an
97.
▲
by
vjerancrnjak
1y ago
I replied directly to you. There are valid arguments as to why async-await sucks, even after you're deeply familiar with how it works. Even though it's just generators/coroutines beneath, async-await pollutes the code complet
98.
▲
by
vjerancrnjak
1y ago
It's more about how the code ends up evolving. Async-await in JS is sometimes used to swallow exceptions. It's very often used to do 1 thing at a time when N things could be done instead. It serializes the execution a lot when it
99.
▲
by
vjerancrnjak
1y ago
Is there software that works without ECC RAM ? I think most popular databases just assume memory never corrupts .
100.
▲
by
vjerancrnjak
1y ago
It changes. Previously, I wouldn’t watch h264 videos that had wrong encoding settings (bad deblock, 2pass, bad crf). Now I don’t really care. When I cared, I cared about movies as well. It’s just the energy of caring. Now I don’t find movie
101.
▲
by
vjerancrnjak
1y ago
It must be the tokenizer. Figuring out words from an image is harder (edges, shapes, letters, words, ...), yet internal representations are more efficient. I always found it strange that tokens can't just be symbols but instead there&#
102.
▲
by
vjerancrnjak
1y ago
How will you deal with lack of 3 AZ or FI to DE latency?
103.
▲
by
vjerancrnjak
1y ago
I like how Serbian is completely fine with Njujork or Majkl Ðekson. Phonemic orthography should win and destroy all spelling bees.
104.
▲
by
vjerancrnjak
1y ago
I guess we just need pipelining systems that batch. These patterns constantly appear yet we continue writing code step by step.
105.
▲
by
vjerancrnjak
1y ago
A recurring problem, somehow making it very easy to write code that deals with 1 thing from start. When time comes , somehow hard to write code that deals with N things. I wonder how different the code would look if it was just written to d
106.
▲
by
vjerancrnjak
1y ago
But Cloudflare Workers or AWS Lambda setup would not work anyway with any db? * spawning 1000 workers all opening a connection to a db, * solved by service/proxy in front of db, * proxy knows how to reach db anyway, let's do priva
107.
▲
by
vjerancrnjak
1y ago
Exactly, sounds like misuse of unions. Although Python type hints are not expressive enough.
108.
▲
by
vjerancrnjak
1y ago
There’s no exponential improvement in go or chess agents, or car driving agents. Even tiny mouse racing. If there is, it would be such nice low hanging fruit. Maybe all of that happens all at once. I’d just be honest and say most of it is c
109.
▲
by
vjerancrnjak
1y ago
I understand your examples, but I'd say ASTs are rare and they're already a convenience, not a performance or efficiency choice. You're using ASTs because you'll be able to write other code quickly. For the wishlist and
110.
▲
by
vjerancrnjak
1y ago
Lenses: solve a problem elegantly (if you can hide the boilerplate) but inefficiently. A self caused problem by having extremely nested records. How did you get to a point where you have a structure that's hard to play with? Lenses are
111.
▲
by
vjerancrnjak
1y ago
I felt similar with lenses. The problem lens solve is horrible. You don’t even want that problem. FP can be the pragmatic as well. You’re going to glue up monad transformers, use lenses like there’s no runtime cost, and compute whatever you
112.
▲
by
vjerancrnjak
1y ago
How to reuse `readFile` `writeFile` program with this module trick? Assuming `IO.readFile` and `IO.writeFile` is replaced by HTTP requests. I can define `writeFile` and `readFile` in a type class and then implement the effect for HTTP varia
113.
▲
by
vjerancrnjak
1y ago
Flix does not have generic effects, yet it has generic traits. This hints that effects are not meant to deal with data variability. Effects are allowing variability of control flow. Abstracting `try/catch/finally` or `async/a
114.
▲
by
vjerancrnjak
1y ago
Any programming language with an effect system could do that as well. More recently discussed are OCaml's effect system, or Flix programming language.
115.
▲
by
vjerancrnjak
1y ago
I recently remembered a question I had a decade ago. Why 1 nostril is always clogged up when breathing and it seems to switch now and then? It's magnificent that I can finally get an answer for that and would never imagine it is comple
116.
▲
by
vjerancrnjak
1y ago
Haven’t seen even something like opinionated frameworks work well with their initial abstractions. Even file interfaces in most programming languages don’t come with pipelining. Most are leaky abstraction. Most abstractions also deal with 1
117.
▲
by
vjerancrnjak
1y ago
There are many ways code can get simpler even with ifs. If you find yourself sprinkling ifs everywhere, try to lift them up, they’ll congregate at the same place eventually, so all of your variability is implemented and documented at a sing
118.
▲
by
vjerancrnjak
1y ago
They just have a pool that’s filled with bad candidates. They want to disable luck for them.
119.
▲
by
vjerancrnjak
1y ago
They wouldn’t be able to learn much from interactions anyway. Learning metric won’t be you, it will be some global shitty metric that will make the service mediocre with time.
120.
▲
by
vjerancrnjak
1y ago
I would like a language where your call stack can't be bigger than two/three. You can call functions inside your function Main, but these function can't call any functions anymore (exception being flat helper functions define
More ›