Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lpil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
lpil
3y ago
It is being used in production by a good number of people, and the webserver made using it is faster than Cowboy, the most popular Erlang webserver. All OTP is usable from Gleam.
152.
▲
by
lpil
3y ago
> How often is this an issue? In our opinion, almost always.
153.
▲
by
lpil
3y ago
When argument variable names and labels are combined you have two problems: 1. Labels are accidental. If all arguments automatically create labels then the programmer has not considered and deliberately designed the API. Gleam is designed t
154.
▲
by
lpil
3y ago
It doesn't have labelled arguments. It can roughly simulate them using an object, but there's a slight performance cost to doing so.
155.
▲
by
lpil
3y ago
Gleam did used to have this, but the community collectively decided that it was actually quite annoying in practice to always have to write `_, ` after every function
156.
▲
by
lpil
3y ago
All programs using the BEAM runtime will be using OTP, but that doesn't mean you'll be actually writing OTP framework code, you'll almost always be using higher level interfaces instead.
157.
▲
by
lpil
3y ago
That's your opinion, but I also get messages from people saying the opposite. My hunch is that familiarity is actually what makes something more or less readable.
158.
▲
by
lpil
3y ago
Why have two things that do exactly the same?
159.
▲
by
lpil
3y ago
This is also true of Erlang. OTP is a series of libraries and not part of the language.
160.
▲
by
lpil
3y ago
OTP isn't part of Gleam the language, it is a library. This is true of Erlang too, but in Erlang they tend to sell both the language and the actor framework at the same time. With the introduction we want to stress the language rather
161.
▲
by
lpil
3y ago
Gleam has no subtyping so it has no bottom type, but you could still make a function that returns an unbound type variable. However there's no advantage of implementing this in user-land. Having it be part of the language means the com
162.
▲
by
lpil
3y ago
The discord community is fantastic!
163.
▲
Things I like about Gleam's Syntax
(erikarow.land)
151 points
by
lpil
3y ago
|
56 comments
164.
▲
by
lpil
3y ago
People can get domains for whatever they want, you don't need to earn them.
165.
▲
by
lpil
3y ago
Thankfully it is not slow! Last I measured it and its immutable data structures would beat Scala's immutable data structures in benchmarks.
166.
▲
by
lpil
3y ago
Check out the existing AtomVM if you've not for that use case. https://github.com/atomvm/AtomVM
167.
▲
by
lpil
4y ago
What makes you say that? Traits and type classes don't inherently use either static or dynamic dispatch (Rust and Haskell use both, PureScript uses only dynamic), and both techniques outlined in the blog can be optimised to static disp
168.
▲
by
lpil
4y ago
Gleam is a strongly typed language like Haskell or Rust, so you cannot have a collection of multiple different types without using another type to wrap them into one.
169.
▲
by
lpil
4y ago
I find that a large Elixir codebase is easier to work with than a larger Ruby or JavaScript codebase, but it still has the same difficulties to some degree. If you're a typing fan as I am, and you are interested in the BEAM then you ma
170.
▲
by
lpil
4y ago
Congratulations and thank you to the Phoenix team! Stellar work as always.
171.
▲
by
lpil
4y ago
What a great idea!
172.
▲
by
lpil
4y ago
Sonic Pi is a wonderful project! Sam the creator is consistently friendly and helpful, if you get the chance to chat with him or to book him for a conference or a party you should on that opportunity.
173.
▲
by
lpil
4y ago
I think it's not really intended for synth design and complex sound design, it's more akin to an instrument than a DAW. If you read the source code for Sonic Pi you'll see that most the synths are implemented in SuperCollider
174.
▲
by
lpil
4y ago
Thanks for sharing this! I'm the creator of Gleam, happy to answer any questions.
175.
▲
by
lpil
5y ago
Bravo! Well said. Thank you Dan
176.
▲
by
lpil
5y ago
It enables Gleam developers to write Gleam code in a wider variety of situations. Web frontends are one obvious example (though as you say there are more mature ecosystems for that) but there are many others, some of which are listed in the
177.
▲
by
lpil
5y ago
We would like to do that one day! It would take a long time though, so more impactful things will come first, such as improved tooling and documentation.
178.
▲
by
lpil
5y ago
The supervision trees require a few features of the VM that are hard to replicate in other runtimes. Links and process isolation being the main ones. Robustness aside the BEAM has other nice properties such as the concurrency model, the con
179.
▲
by
lpil
5y ago
A full stack web framework is certainly something we want to explore in future.
180.
▲
by
lpil
5y ago
The first specifies the module that the the function is contain by. In this case we are using global functions so there is no module, but if we specified and module the function would be imported from it.
More ›