Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leshow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
541.
▲
by
leshow
8y ago
I haven't written Java since like java 5, but I believe java 8 has syntax for this as well: `usersList.stream().forEach(someSet::add)`
542.
▲
by
leshow
8y ago
> "unsafe" by definition throws safety guarantees out the window I wish they had chosen a different keyword, it doesn't necessarily mean that. For instance, the type checker still runs on the contents of unsafe blocks, so
543.
▲
by
leshow
8y ago
> And yes, sequential Go _is_ memory safe, but concurrent Go is not. You're agreeing with me, I was saying that Go isn't memory safe by Rusts definition. As you mentioned, it doesn't protect against data races, therefore,
544.
▲
by
leshow
8y ago
> My brain can process only so much information, the less thing it has to process (like the less type declarations) the better. Ignoring that I've already mentioned inference that makes this a non-issue. My other problem with this i
545.
▲
by
leshow
8y ago
This article casually throws around definitions of 'memory safety' that are massively different. Rust's 'memory safety' guarantee is different from Go's 'memory safety'. Rust includes protection from
546.
▲
by
leshow
8y ago
I'm not talking about a web page, I'm talking about a binary you're running locally. Your criticism doesn't apply.
547.
▲
by
leshow
8y ago
forget autocomplete, what about type inference? We've had that for decades yet new languages still come out without good support for it.
548.
▲
by
leshow
8y ago
> It's easier to write code in dynamic-typed languages because (generally speaking, I'm pretty sure there are exceptions to this rule) dynamically-typed languages are not as verbose as static-typed languages. I really don'
549.
▲
by
leshow
8y ago
> Originally Volt app was written in Go, but after a couple of weeks of development I decided to re-write it in C for two reasons: easier integration with existing C graphics and UI libraries and much smaller binaries. The app size reduc
550.
▲
by
leshow
8y ago
Maybe there's a reason people keep saying it? I guess you'll never know until you try it yourself. > enjoyed not having the insanity of all those commas and not having to do everything myself Racket has a pretty robust std libr
551.
▲
by
leshow
8y ago
I don't know what languages you're referring to but I didn't have my eyes opened until I spent significant amounts of time learning Haskell. I think any language with suitably advanced type system would do: ocaml/reason,
552.
▲
by
leshow
8y ago
The fonts are still accessible if they are in home, I found `fc-list` which gives the name for each of the font files.
553.
▲
by
leshow
8y ago
> How does async translate calls to other async functions? Is refactoring into smaller async functions less efficient? I believe it builds the calls up into one larger future, so it shouldn't be any less efficient. I can't answ
554.
▲
by
leshow
8y ago
> What is going on with futures 0.3? Why is everyone still using 0.1? AFAIK becaue tokio isn't upgrading until some issues are ironed out. As long as tokio is on 0.1 the rest of the community will be on 0.1 too.
555.
▲
by
leshow
8y ago
I can't seem to get the font to show in vscode. I've installed the ttf fonts to ~/.fonts and refreshed my font cache, but "B612" as a font name doesn't seem to match anything, neither does "B612 Mono"
556.
▲
by
leshow
8y ago
You can use DRM and html5 video, https://en.wikipedia.org/wiki/Encrypted_Media_Extensions " This allows the use of HTML5 video to play back DRM-wrapped content such as streaming video services "
557.
▲
by
leshow
8y ago
Is that really true? Netflix uses html5 video to stream. The use case for a pure js player must be fairly small edit : my bad, I thought the project in the OP didn't use html5 video at all, I see how that it is a wrapper around it.
558.
▲
by
leshow
8y ago
Elm isn't a general purpose programming language. You can only write web-apps with it you can only use TEA (the elm architecture). In that way, the TEA really is it's main value proposition.
559.
▲
by
leshow
8y ago
> only reinforces the original claim It didn't though, the "Mme" part stands for mademoiselle, indicating it is a woman. Therefore they weren't pretending to be a man for the purpose of getting a paper published.
560.
▲
by
leshow
8y ago
Should be noted it usually takes a bit longer to get to that first working version in Rust. It's debatable whether in the long run it's faster to develop with. I would argue it is much faster to get to a final, 'correct
561.
▲
by
leshow
8y ago
A lot of these gripes are unfair and don't really matter IMO. I think complaining about things as trivial as syntax is really just scratching the surface and doesn't serve your conclusion. A dictionary is an interchangeable word w
562.
▲
by
leshow
8y ago
I really dislike intellij, so I've not spend much time trying their rust plugin. If memory serves according to the rust survey, vim or vscode are the most widely used environments.
563.
▲
by
leshow
8y ago
I don't doubt it. I use i3 & arch at home and have for almost a decade without problems. I use i3 and debian at work and enjoy it far less. I'm merely stating that your exactly the kind of person that likes to tinker with thin
564.
▲
by
leshow
8y ago
> (I use i3 and write most of my own utilities) You're kind of confirming his/her point here.
565.
▲
by
leshow
8y ago
I got lost in the weeds fairly quickly with this blog post, why is it that you didn't have to implement Future? Pinning is required here because your AsyncRead read_to_end returns a future bound by some reference lifetime?
566.
▲
by
leshow
8y ago
According to this blog post, no: "... performing a CPS-like transform where an async function is split into a series of continuations that are chained together via a Future::then method" they are referring to c# and js implementat
567.
▲
by
leshow
8y ago
> What's it like to work with? Do you prefer it to JS/PHP/Python for web related projects? Coming from dynamic languages it will feel very different, especially if you don't have a lot of experience with typed compile
568.
▲
by
leshow
8y ago
AFAIK Rocket has always been focused on developing an ergonomic type safe API to building web applications. Many things it depends on, codegen, proc macros, that sort of thing, are yet to be stabilized. I'm not affiliated with the proj
569.
▲
by
leshow
8y ago
weak/strong typing has no formal definition. You can argue over it's meaning but neither of you will be right.
570.
▲
by
leshow
8y ago
It seems Go wants to have a more open development process, but it looks like all the decisions are ultimately under the purview of the "Go team". Does the Go team include any community members? Or is this "open process"
More ›