Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
YorickPeterse
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
YorickPeterse
3y ago
Or maybe it's just a case of a job queue used for indexing new repositories being full. Not every instance of "X doesn't work" is the result of malicious intent.
92.
▲
by
YorickPeterse
3y ago
> An unexpected benefit of community was shown in its role in avoiding a PR disaster. In January 2017, a database administrator (referred to as "team-member-1") Small nitpick/pedantics: the person in question wasn't a
93.
▲
by
YorickPeterse
3y ago
I have mixed feelings on Rust's syntax, especially around generics, lifetimes, and the `modifier -> keyword` syntax (i.e. `async fn` or `pub fn`). For Inko, I wanted something that's easy to parse by hand, and no context specif
94.
▲
by
YorickPeterse
3y ago
Ah gotcha. Yes, the actual layout of arrays is: header size capacity data ptr Where `data ptr` is a raw pointer to data that is realloc'd as the array grows.
95.
▲
by
YorickPeterse
3y ago
There are no pre-built binaries. If you're using Arch Linux there's an AUR package (see https://docs.inko-lang.org/manual/main/getting-started/ivm/#... ), but for other platforms you'll nee
96.
▲
by
YorickPeterse
3y ago
Arrays store just the pointers to their values, storing them inline isn't supported, like so: ptr to array --> array header size capacity
97.
▲
by
YorickPeterse
3y ago
The cost of reference counting is only present when creating and destroying aliases, moving moved values around incurs no cost. That alone significantly reduces the overhead. In addition, for objects other than String, Channel and processes
98.
▲
by
YorickPeterse
3y ago
You're right that "expect" combined with the error message here could be better. Specifically, I've been wanting a better name for the method, but haven't really done anything about it yet. The name itself is taken
99.
▲
by
YorickPeterse
3y ago
While I indeed worked for GitLab until 2021, Inko's development began before I joined GitLab, and GitLab wasn't involved in it at all. Inko was hosted on GitLab for a while (using their FOSS sponsorship plan), but I moved it back
100.
▲
by
YorickPeterse
3y ago
> Is the mut marking also for consistency (and/or non-message methods)? Presumably each actor/object would only process one message at a time so could always have full access to all its data. This is indeed correct:
101.
▲
by
YorickPeterse
3y ago
You're right! Sadly I can't edit the comment any more to correct it :<
102.
▲
by
YorickPeterse
3y ago
Inko's package manager supports non-GitHub repositories just fine. What the original comment likely is referring to is the website only including GitHub based packages. This is simply because the script that populates that list hasn&#x
103.
▲
by
YorickPeterse
3y ago
When there are people using Inko and hosting their packages on another forge such as GitLab, and said forge has an API to get the data needed, I'll happily accept any patches to allow listing of non-GitHub packages on the website. The
104.
▲
by
YorickPeterse
3y ago
The reference counts are used to prevent dropping a value that still has references to it, but it doesn't dictate _when_ that drop takes place. Instead, an owned value is dropped as soon as it goes out of scope, just like Rust. So no,
105.
▲
by
YorickPeterse
3y ago
The reference counts don't dictate when memory is released, that happens when an owned value goes out of scope, just as is the case for Rust. The reference counts are merely used as a form of correctness checking. The result is that al
106.
▲
by
YorickPeterse
3y ago
Generally speaking: if you're looking for a non-systems language that gives you similar guarantees as Rust, but with a lower mental cost, and you can stomach the drawbacks of a young language, then Inko might be worth looking into. As
107.
▲
by
YorickPeterse
3y ago
Inko defaults to heap allocating objects (except for Int, Float, Nil, and Bool), meaning the data pointers point to is in a stable place. Thus, moving them around is just moving a pointer around, not a memcpy of the underlying data. This in
108.
▲
by
YorickPeterse
3y ago
A class marked as "async" can still have regular methods, which are only available to the inside of the class (i.e. the process itself, not other processes sending messages to it). So you can do something like this: class as
109.
▲
by
YorickPeterse
3y ago
I'm planning on doing something similar to what I did for pattern matching [1]: basically building something entirely standalone that fits in 2k LOC or so, and explains the basics (i.e. nominal typing plus basic sub-typing), hopefully
110.
▲
by
YorickPeterse
3y ago
The problem about the whole "it's faster (productivity wise) than static typing" has, as far as I know, never actually been proven (certainly not through repeated studies). Having worked with both dynamically and statically t
111.
▲
by
YorickPeterse
3y ago
You're right about this applying to new languages. I've added a note to the article to (hopefully) make this more clear.
112.
▲
by
YorickPeterse
3y ago
The problem for me was that I had a rough idea of how to implement (essentially it's similar to a recursive-descent parser), but I had a difficult time finding appropriate resources to confirm or deny whether my idea was solid, as well
113.
▲
A decade of developing a programming language
(yorickpeterse.com)
288 points
by
YorickPeterse
3y ago
|
139 comments
114.
▲
by
YorickPeterse
3y ago
Ah yes, because good engineers can only be found in San Francisco and similarly expensive areas.
115.
▲
by
YorickPeterse
3y ago
That is only a problem if you insist on hiring people from such expensive areas. Given Oxide hires remotely, I doubt this is an actual problem for them.
116.
▲
by
YorickPeterse
3y ago
If you scroll past the code examples, there are a few more details, though for more you'll need to look at the documentation (specifically https://docs.inko-lang.org/manual/main/getting-started/memor... )
117.
▲
by
YorickPeterse
3y ago
Perhaps you'd be interested in Inko ( https://inko-lang.org/ ). It's obviously not there yet in terms of tooling and what not, but it might scratch an itch for those looking for something a bit like Rust, but easier
118.
▲
by
YorickPeterse
3y ago
Had a similar issue with a previous standing desk: turning the motor on to adjust the height of the desk would turn on the RGBs on my keyboard (which uses a skeleton-like structure, so you can see the wires), though not always. After some t
119.
▲
by
YorickPeterse
4y ago
Honestly that just sounds like "I want things for free, but I'm not willing to give back anything in return".
120.
▲
by
YorickPeterse
4y ago
Ah interesting. Do you have any guides about fedpkg that you'd recommend?
More ›