Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
needlesslygrim
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
needlesslygrim
2mo ago
> Unity's GC is unique in that it has an incremental marking phase. Does ZGC not also have an incremental marking phase?
2.
▲
by
needlesslygrim
7mo ago
While Swift now has the `borrowing` and `consuming` keywords, support for storing references is nonexistent, and the only way to return/store `Span`s, etc, is only possible through using experimental `@lifetime` annotations. Swift is a
3.
▲
by
needlesslygrim
10mo ago
> extremely inefficient strings (erlang) Doesn't most modern Erlang code use binaries instead of charlists? Elixir and Gleam certainly do.
4.
▲
by
needlesslygrim
1y ago
> Rust has some support for zero-runtime, but a lot of it's features is either useless of outright in the way when you are not using a heap. Could you give some examples?
5.
▲
by
needlesslygrim
1y ago
That's good to hear, I guess it's possible a thicker module could be made in the future with more cooling potential?
6.
▲
by
needlesslygrim
1y ago
I'm very impressed you managed to get nvidia to give you access to the 5070! I have one queetion though, is the 5070 limited to 100W because of the docking connector, or for cooling reasons?
7.
▲
by
needlesslygrim
1y ago
That makes sense, and it's interesting that both you and Linus Torvalds maintain your own versions of Micro Emacs. Sign of greatness perhaps :)
8.
▲
by
needlesslygrim
1y ago
I'm curious, why don't you use GNU Emacs?
9.
▲
by
needlesslygrim
1y ago
Oh I see. I assumed being able to explicitly yield unit meant statements were essentially just syntax sugar for unit. Thanks for the correction.
10.
▲
by
needlesslygrim
1y ago
Well, Rust barely has statements [1]. Nearly everything in Rust is an expression, and AFAIK statements /are/ essentially expressions that yield `()` [2]. [1]: https://doc.rust-lang.org/reference/statements.htm
11.
▲
by
needlesslygrim
1y ago
In China WeChat is the dominant messaging platform, SMS is only used for delivery notifications, spam, etc.
12.
▲
by
needlesslygrim
2y ago
That's probably fair.
13.
▲
by
needlesslygrim
2y ago
> Async Rust is painful On the other hand, I've found normal threading in Rust quite simple (generally using a thread pool).
14.
▲
by
needlesslygrim
2y ago
Well if you're going to eat crow, I may as well eat pigeon, for I didn't realise that paper wasn't showing real source. Thanks for the link to the LCF text though :^)
15.
▲
by
needlesslygrim
2y ago
I think this criticism is silly. Here's what your first example would look like in a language with keywords (where reasonable, perhaps like C#) instead: pub fn play<lifetime p>(in out self, player: mut ref AnimationPlayer lif
16.
▲
by
needlesslygrim
2y ago
Well, ML (or at least the first versions of it) used a λx • x syntax [1] for λ-abstractions, the same (excluding the use of • over .) notation as used with the Lambda Calculus, and I've always assumed \ was an ASCII stand in. [1]: htt
17.
▲
by
needlesslygrim
2y ago
Unfortunately, while `dynamic` is used for dynamic typing in C#, `var` is just type inferenfe like `auto` in C++.
18.
▲
Sony Proposes Changing LLVM Clang Default to C++20 Mode
(phoronix.com)
13 points
by
needlesslygrim
2y ago
|
0 comments
19.
▲
by
needlesslygrim
2y ago
This is interesting because these semantics seems to be a direct(ish) clone of Rust's. I wonder if this moves Swift's performance ceiling closer to Rust's?
20.
▲
by
needlesslygrim
2y ago
I'm also interested in why the MIT license was chosen. I guess it's because of the plan to create 'libghostty'?
21.
▲
by
needlesslygrim
2y ago
I agree, this doesn't seem to be much better than adding `throws Throwable` to all your methods that can fail in Java. The reason sum types are so useful for error handling is that all possible cases can be exhaustively checked against
22.
▲
by
needlesslygrim
2y ago
There are, at least in my opinion, many more reasons to use Kotlin than null-safety and data-classes/records, especially on Android (Jetpack Compose).
23.
▲
by
needlesslygrim
2y ago
> I never said it is used extensively by most programs True, but to make use of Rc/Arc in Rust comparable to the use of GC in Java, almost evrery value would have to be wrapped in one, something I would think is quite rare. > onl
24.
▲
by
needlesslygrim
2y ago
I'm interested by your characterisation of Rust. I assume 'crude GC' is a reference to Rc/Arc, but I would be interested to see some statistics for the claim most programs written in Rust use them extensively. Also, Rc&#
25.
▲
by
needlesslygrim
2y ago
I'm curious, how does Swift have better pattern matching than Rust?
26.
▲
by
needlesslygrim
2y ago
Good to know, also cool that you replied!
27.
▲
by
needlesslygrim
2y ago
I assume it's derived from the OCaml generic type syntax (the first Rust compiler was written in OCaml after all), for example the definition of the type `Option.t` in OCaml: type 'a t = 'a option = | None | Some of
28.
▲
Build better apps faster with Jetpack Compose
(developer.android.com)
1 points
by
needlesslygrim
2y ago
|
0 comments
29.
▲
by
needlesslygrim
2y ago
I'm pretty sure that's the intended behaviour, and I personally quite like it, but I'm used to Android so shrug : https://developer.android.com/guide/navigation/principles
30.
▲
by
needlesslygrim
2y ago
I'm 17 and King Crimson is one of my favourite bands, and I know other people at school who like them so you'd probably be surprised.
More ›