Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Skinney
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
Skinney
2y ago
No. Gren will instead pursue parametric modules (OCaml functors).
62.
▲
by
Skinney
2y ago
Thank you! I'm already aware of Richard's project and I wish it all the best. You'll find that Gren and Roc differs in certain aspects, though, at least today. It'll be interesting to see how the languages evolve :)
63.
▲
by
Skinney
2y ago
ReScript isn't pure. The big thing with Gren is that it's easy to anticipate what your code will do, even when calling functions you don't know the implementation of. It's hard to do this when function calls can mutate s
64.
▲
by
Skinney
2y ago
It can. If you pass the compiler a output name that has no extension it will produce an executable (js with shebang), and if it has a .js extension it will output a pure js file.
65.
▲
by
Skinney
2y ago
My worry is that by making it very clear that Gren is a fork of Elm, people will assume that what works in Elm also works in Gren. It won't. Gren isn't compatible, and will never be compatible, with Elm. There is different syntax,
66.
▲
by
Skinney
2y ago
Gren will probably resemble OCaml more and more in this regard. Today, you use + for numbers, and ++ to concatenate strings and list.
67.
▲
by
Skinney
2y ago
On the top of my head, the major features to come are: * Compile to WASM * Parametric modules (OCaml functors) * Structural (as opposed to nominal) unions * Improvements to the Ports (FFI) mechanism while still retaining purity * Actors(?)
68.
▲
Gren 0.4: New Foundations
(gren-lang.org)
69 points
by
Skinney
2y ago
|
48 comments
69.
▲
by
Skinney
2y ago
> No they don't. They do. They use tags and semantic structure to figure out what to read when. You also skipped the "and other assistive technology" part of my sentence. Tools for navigating, or alternative rendering, imp
70.
▲
by
Skinney
2y ago
Screen readers and other assistive technology fully expects your HTML to be semantic. It doesn’t always matter, but it matters often enough. CSS tends to be hard because (1) people insists on having a single page with a single stylesheet an
71.
▲
by
Skinney
2y ago
> Languages that are easy to reason about would be generally in the category where you need to do fewer translations before you get to the way the program is executed This is a very interesting definition of "easy to reason about&qu
72.
▲
by
Skinney
2y ago
> What's the benefit of learning a PURE functional programming language 1. It makes it easy to learn how to structure a program in a pure way, which is hard to do in languages that offers you a easy way out. 2. Since "everythin
73.
▲
by
Skinney
2y ago
Who is 'you' in this context? If one parent is working, the other home with the kids, chances are that the one working can't take as much time off or has a harder time setting a healthy work-life balance (increasing your pay
74.
▲
by
Skinney
2y ago
Keep in mind that a write capacity unit in DDB is capped to 1kb. Writing a 10kb file to DDB? That's 10 write capacity units.
75.
▲
Gren: The Road to 1.0 [video]
(youtube.com)
2 points
by
Skinney
3y ago
|
0 comments
76.
▲
by
Skinney
3y ago
I don't think WASM has API's for accessing the DOM, so you'll still need a little bit of glue code. The GC support allows you to safely pass GC objects around without them dissapearing (being collected) on you.
77.
▲
by
Skinney
3y ago
> Is there any theoretically stronger expressive power one gets from Prolog over SQL, I guess this is best illustrated by examples. In prolog, you can define how people are related using "facts" or data: person_parent(alf
78.
▲
by
Skinney
3y ago
It is possible to implement your own strings by only using WASM primitives. There are two, as I see it, major reasons for including specialized support for it anyway: 1. One of the biggest WASM runtimes are browsers, and so it's likely
79.
▲
by
Skinney
3y ago
EU did the same to Microsoft by forcing them to allow setting other browsers than IE as the default. As for Chrome, it's already pretty open. Anyone can build extensions for it and distribute it freely. The same cannot be said for iOS.
80.
▲
by
Skinney
3y ago
Fossil doesn’t have a dependency on chat, forum, wiki or issues. They’re included, part of the same product. But if you don’t want it, then you don’t have to use it. Just like you don’t have to turn on the radio or AC in your car. Just like
81.
▲
by
Skinney
3y ago
If your car followed the unix philosophy you’d have to bring your own radio and AC.
82.
▲
by
Skinney
3y ago
> I wish they would stop spending major money on constructing bike paths and allocating more and more of the road to bikes, and instead invest heavily in improving and expanding public transit. Since it is useful for nearly all of the po
83.
▲
Gren-lang/node 3.0.0 has been released with a ChildProcess and HttpServer API
(snabelen.no)
1 points
by
Skinney
3y ago
|
0 comments
84.
▲
by
Skinney
3y ago
I think you’d use hx-select: https://htmx.org/docs/#selecting-content-to-swap
85.
▲
by
Skinney
3y ago
> So now I need to make endpoints for every little UI element that I want to be updated by user interactions? No. Htmx supports extracting a subset of received HTML and merging it with the current page. So, for a typical form, you _could
86.
▲
Gren 0.3: Source Maps
(gren-lang.org)
1 points
by
Skinney
3y ago
|
0 comments
87.
▲
by
Skinney
3y ago
To be fair: you can definitely call JS from Elm/Gren using ports, which exposes the JS world as an async service you can call. This seperation means you lose none of the guarantees of the language, while being able to communicate with
88.
▲
by
Skinney
3y ago
There’s no technical reason for it to be bound to github, it just haven’t been a priority. Contributions welcome.
89.
▲
by
Skinney
3y ago
That’s the plan
90.
▲
by
Skinney
3y ago
Nice to see that people were interested in Stabel :D I got a bit too ambitious with the type system, I think. At the very least, I got to a point where I got discouraged because the type system I wanted was difficult to implement, and I sta
More ›