Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ainar-g
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
ainar-g
28d ago
Re unions: https://github.com/golang/go/issues/76920 You might want to follow this proposal, if you aren't already. It's the most recent one, and it's supported by quite a few “core members” o
2.
▲
by
ainar-g
4mo ago
https://doc.rust-lang.org/reference/behavior-considered-unde...
3.
▲
by
ainar-g
7mo ago
Have you ever learned a language? Because that's what it is for a very large percentage of people.
4.
▲
by
ainar-g
10mo ago
Which is why the Soviet government used “ultraviolet baths” to make sure that children up North got their vitamin D. https://www.nationalgeographic.com/photo-of-the-day/photo/ul...
5.
▲
by
ainar-g
1y ago
There's always ReactOS[1], a project for a bug-for-bug compatible Windows clone. It used to mostly aim at Windows 9x compatibility the last time I'd checked, though, but that could probably change. And if anyone wants to create
6.
▲
by
ainar-g
2y ago
Thank you, rsc, for all your work. Development in Go has become much more enjoyable in these 12 years: race detector, standardized error wrapping, modules, generics, toolchain updates, and so on. And while there are still things to be des
7.
▲
C23 is cancelled due to missing the publication deadline
(iso.org)
7 points
by
ainar-g
2y ago
|
4 comments
8.
▲
by
ainar-g
2y ago
Source on the reasons, from the editor: https://pony.social/@thephd/112791335889843647 .
9.
▲
by
ainar-g
2y ago
If I recall correctly, ProtoBuf has a reflection layer, and it's probably using that.
10.
▲
by
ainar-g
2y ago
Re. bad tooling. grpcurl[1] is irreplaceable when working with gRPC APIs. It allows you to make requests even if you don't have the .proto around. [1]: https://github.com/fullstorydev/grpcurl
11.
▲
by
ainar-g
2y ago
> While the compiled programs stayed the same, we no longer get a warning (even with -Wall), even though both compilers can easily work out statically (e.g. via constant folding) that a division by zero occurs [4]. Are there any reasons
12.
▲
by
ainar-g
2y ago
Ah, so extremely localized uses of pointers, got it, thanks.
13.
▲
by
ainar-g
2y ago
That could be true, but I've done a few optimizations of allocations in Go code, and I don't recall pointers to stack values ever being optimized (unless the entire branch is removed, of course). If anyone could provide an exampl
14.
▲
by
ainar-g
2y ago
Whenever you do: v := interfaceType(concreteTypeValue) in Go, what you're actually doing on a lower level is: dataPtr := &concreteTypeValue typePtr := typeData[concreteType]() v := interfaceData{ data: data
15.
▲
by
ainar-g
2y ago
To be fair, if that's what you need ProtoBuf isn't the only option. Cap'n Proto[1], JSON Schema[2], or any other well supported message-definition language could probably achieve that as well, each with their own positives a
16.
▲
by
ainar-g
2y ago
There is a proposal to get this using the "defer" keyword into either the next C revision or the one after that[1]. [1]: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3199.htm .
17.
▲
by
ainar-g
2y ago
Privilege separation[1], most likely. If your system needs to do three things, it could either just do all of them using a single executable requiring all three permissions (thus also theoretically allowing an attacker to use it to do all
18.
▲
by
ainar-g
2y ago
This makes me thing of the stories I've heard stories from those who lived in communal apartments back in the U.S.S.R. days. Couples who had a creaking bed and wanted to go at it at night would just do it on the floor instead of on th
19.
▲
by
ainar-g
2y ago
Why the quotation marks? If I recall correctly, Vala compiles (by way of C) into native code.
20.
▲
Kiss High-Availability with OpenBSD
(foo.zone)
15 points
by
ainar-g
2y ago
|
3 comments
21.
▲
by
ainar-g
2y ago
IPv6, too. (Unless you also need interface IDs for link-local addresses.)
22.
▲
by
ainar-g
2y ago
On a related note, have there ever been extensions for PosgreSQL/SQLite/any other FOSS DBMS that would allow using Tutorial D[1] (the Third-Manifesto one, not to be confused with Walter Bright's D language) to define and quer
23.
▲
by
ainar-g
3y ago
A feature that combines well with range and enum types are typed indexes of arrays: TYPE TWeekday = (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday); VAR WeekdayNameIndex : ARRAY [TWeekday] OF ShortString = (
24.
▲
Russian TLD .RU fails DNSSEC validation
(dnsviz.net)
71 points
by
ainar-g
3y ago
|
22 comments
25.
▲
by
ainar-g
3y ago
Re. the shape of the code, it's probably a matter of habit, as I have the complete opposite experience reading code in languages with exceptions. That is, I find that there is too much happening within a few lines, wondering which lin
26.
▲
by
ainar-g
3y ago
Funny you mention Go, because it's my main language these days. And I have to be honest, I don't have the issues you're mentioning. 99 % of loops in the code I review is the plain for-range type, and whenever it's some
27.
▲
by
ainar-g
3y ago
I think one of the reasons might have something to do with the fact that with more experience—and thus, often, a higher position—comes the responsibility of reading more code. Often, you come to a point where you are reading more code th
28.
▲
by
ainar-g
3y ago
It does have optional support for JS thru Duktape[1] Engine, if I recall correctly, but that engine doesn't support a lot of modern JS stuff, mostly being limited to ECMAScript 5. [1]: https://duktape.org/
29.
▲
by
ainar-g
3y ago
I've looked up some JSSS code examples, and it seems like it's pretty much the only type of code where the "with" keyword makes sense: <style type="text/javascript"> tags.H1.color = "red&q
30.
▲
by
ainar-g
3y ago
I was hoping that Canonical has higher standards when it comes to server software, as opposed to something like Snapcraft, but reading this makes me think that maybe they both were developed by the same team.
More ›