Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Zababa
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
841.
▲
by
Zababa
5y ago
It comes up often too. A few month ago I wanted to make a part of the code I was working on more declarative, so I had it take a javascript object that described a layout, and make actions depending on that object. That's a form of int
842.
▲
by
Zababa
5y ago
The full explanation: In OCaml, before 4.08, there was no special support for monads. For example, the Option module ( https://ocaml.org/api/Option.html ) offers an "Option.bind" function. When chaining monads,
843.
▲
by
Zababa
5y ago
Thanks for the explanation, that makes a lot of sense.
844.
▲
by
Zababa
5y ago
That's true, though the author's HN account wasn't created at this time (but he may have been reading it still), and since the post wasn't that popular it's fair to expect that the author didn't read it. You co
845.
▲
by
Zababa
5y ago
It's basically that. Example: hello.then(a => return op1(a)).then(b => return op2(b)).then(c => console.log(c); const a = await hello(); const b = await op1(a); const c = await op2(b); console.log(c)
846.
▲
by
Zababa
5y ago
That may be projection on my part, but I feel like lots of programmers (me included, of course) have a hard time accepting code as a living thing, and would rather build something that "lasts forever". I feel like this is the kind
847.
▲
by
Zababa
5y ago
Great article, thanks for writing that. A small question for the author: in the Addressable_intf.S signature, read_byte has regular arguments and write_byte named arguments. Is there a reason for that?
848.
▲
by
Zababa
5y ago
This says a lot more about your place than about OCaml, so I'm not sure why you mention this here.
849.
▲
by
Zababa
5y ago
It seems like the RosettaBoy project/repo is not well known at all. I've search information about gameboy emulators before and never saw it mentioned, the project has only one contributor that's active, a few language, not mu
850.
▲
by
Zababa
5y ago
Are those masks better for people with glasses? I have to wear a mask in public transportation and at work, and I always get fog on my glasses. This sounds like a small thing, but having to adjust how you breathe all day just to be able to
851.
▲
by
Zababa
5y ago
This to me looks like the classic "language 1 needs you to write more code, language 2 needs you to know and use more features", which is an endless debate.
852.
▲
by
Zababa
5y ago
Sum types, too, since the enums are C enums.
853.
▲
by
Zababa
5y ago
ARC is not more performant, it's more deterministic. "regular" GCs have better throughput. RC in general also handles other resources (like files) a bit better than GC.
854.
▲
by
Zababa
5y ago
> That, and also the fact that it may be pretty much the only dynamic language in use today with ARC and not a GC. Python and Perl use reference counting too. Ruby, Lua and JS (at least v8) are GC'd. PHP isn't unique in that re
855.
▲
by
Zababa
5y ago
> What's better, a gallery exhibition of 20 photographs or 2000? It doesn't work that way. Yes, it doesn't work that way, the number of frames you have and the number of pictures you select for a gallery exhibition are two
856.
▲
by
Zababa
5y ago
> An address is not open to interpretation and doesn't convey any personal meaning. I've heard plenty of time to not put my address in my CV if I'm not currently living in a nice place. Especially for students looking for
857.
▲
by
Zababa
5y ago
> Anyone who claims to have their identity figured out is either in denial or stopped digging into it for the time being. The rabbit hole truly never ends. I agree with that part, but I also think that often giving a name isn't real
858.
▲
by
Zababa
5y ago
> There are no outright false claims or lies on the vlang.io main page, in my opinion. You've ignored my earlier point about pure functions that are allowed to have side effects. > A very good argument can be made that V is close
859.
▲
by
Zababa
5y ago
Because the police doesn't collect those in the first place /s.
860.
▲
by
Zababa
5y ago
> For those that aren't VC funded I think that a lot can be explained by cargo-culting; "If startup X is using Node/React/Redux/microservices and they just scored a 20m Series A then we'd better do it too&qu
861.
▲
by
Zababa
5y ago
Maybe a bit of a stupid question, but, will the compiler itself evolve to use multiple cores?
862.
▲
by
Zababa
5y ago
One thing that I think is missing is the compilation time. Those can vary widely depending on the languages. Other than that it's a nice repo, thanks for sharing it!
863.
▲
by
Zababa
5y ago
Thank you for the explanation. I hope too you will continue the OCaml compiler bimonthly, it's always an interesting read, and it's nice to be up to date with what's happening.
864.
▲
by
Zababa
5y ago
> In regards to V's web page ( https://vlang.io/ ), they describe the language relatively accurately, in addition to promotion. No they don't, see my various points that you have ignored about false claims. You&#
865.
▲
by
Zababa
5y ago
What's next after this? There are a lot of different projects ongoing for OCaml (typed effects, modular explicits/implicits, all of the RFCs, flambda and flambda 2, and I'm probably forgetting a lot of them). However, while f
866.
▲
by
Zababa
5y ago
> Maybe for the next trendy language we could think about the Object-capability model before it's too late. https://en.wikipedia.org/wiki/Object-capability_model There is an object-capability model in the upcom
867.
▲
by
Zababa
5y ago
Modern nutrition research is often imprecise and contradicts itself. An example: > Research conducted at the Harvard Chan School of Public Health has found that eating even small amounts of red meat—especially processed red meat—on a reg
868.
▲
by
Zababa
5y ago
Those are fair points, but my understanding is that it's not specific to NFTs iteself: - buyers not knowing exactly what they buy is something that happens all the time in the real world. That doesn't make it right, of course, but
869.
▲
by
Zababa
5y ago
> You're not 'buying' anything. You're just making a non-deductible donation. You are buying something in that you will be able to sell it later, which I think is the main point.
870.
▲
by
Zababa
5y ago
Your are the one name-dropping three mathematical concepts though? I'm not sure I understand your reasoning here. I'm talking about the basis for jq in general, not just your example. And if your message is representative of how t
More ›