Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dfkf
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
dfkf
10y ago
Generic code working with reference types can be shared, but passing structs for generic parameters forces JIT compiler to generate separate instances of generic methods or classes for each combination of structs. From there inlining become
2.
▲
by
dfkf
10y ago
That's a little bit too harsh. The solution is a no-brainer if you come from C#/Javaland, but if you don't... well, we get a nice illustration to the saying that "there are no stupid questions".
3.
▲
by
dfkf
10y ago
> The answer is not just "var" because you have now completely dismissed local variable immutability (something C# does not have) It is something that C# does have. It just doesn't allow immutable variables to be implicitl
4.
▲
by
dfkf
11y ago
> Autocratic states ultimately can't work with democratic ones. Its unfair to expect one group to 'follow the rules' and another to go off willy-nilly when it serves them. Libya's "no fly" zone, Iraq, Kosovo
5.
▲
by
dfkf
11y ago
From the description, almost 90% of created tasks in this benchmark are tiny "leaf" tasks, which are quite likely to be optimized away completely. So it looks like the benchmark compares how well these compilers optimize one parti
6.
▲
by
dfkf
11y ago
And who killed Paul Khlebnikov in 2004? He was a Putin-apologist and chief editor of Russia Forbes. Unfortunately, a lot of journalists die in Russia every year, and has been for the past quarter of century. Cherry picking some of them prov
7.
▲
by
dfkf
11y ago
"Why act like pointing out an obvious motive is the focus or even a main point of the report?" Because this motive is quoted in articles to link this crime to Putin. I certainly don't care about Lugovoi, Kovtun, their motives
8.
▲
by
dfkf
11y ago
"Fourth, the causes espoused by Mr Litvinenko – such as the FSB’s alleged responsibility for the apartment bombings, the war in Chechnya, and alleged collusion between President Putin and other members of his administration and organis
9.
▲
by
dfkf
11y ago
No, it's mentioned in the article that their new IDE is just a frontend for R#.
10.
▲
by
dfkf
11y ago
And why would the US do such a thing? Denying poor crimeans who suffer under brutal Russian occupation these small pleasures of life...
11.
▲
by
dfkf
11y ago
There is no way to allocate objects of reference types on stack because references can easily outlive objects, leaving you with dangling references. And as I understand ByVal in VB.NET is redundant since it's the default option. It
12.
▲
by
dfkf
11y ago
Huh, author even uses exceptions as a part of normal workflow, instead of checking if "previousVersions" list is empty before calling Min on it he instead catches InvalidOperationException. I don't want it to look like an ad
13.
▲
by
dfkf
11y ago
Videos of such experiments would be greatly appreciated.
14.
▲
by
dfkf
12y ago
It is one of those cases where you can actually leak memory with a GC. But at least Java gives (gave?) you a choice: to create a new string a use the current one, in .NET substring always returns a new string.
15.
▲
by
dfkf
12y ago
To author, please use "location.replace" instead of "location.hash". -avid pewpew player.
16.
▲
by
dfkf
12y ago
In what sense this introduction is alternative? It's just like every other intro that explains basic and easily understood things about the borrow checker, but doesn't go into details on how you actually live and work with the dam
17.
▲
by
dfkf
12y ago
There is no need to drag shale gas into this. Ukraine is a big country, even if very poor (for now). The economic part of the association agreement was especially damaging to the economic relationship between Russia and Ukraine. The EU pla
18.
▲
by
dfkf
12y ago
Cui prodest?
19.
▲
by
dfkf
12y ago
They are like Dogar and Kazon. http://www.youtube.com/watch?v=NzvySzw_-O0&t=112
20.
▲
by
dfkf
12y ago
I think the poster means that c# has many functional features and F#, while being functional language at heart has lots of OO features integrated in it. PS And the linked question only describes the limitations of Visual Studio where you ca
21.
▲
by
dfkf
12y ago
In the worst case scenario the time complexity of a hash table equals that of its bucket, which doesn't have to be a list. So the only advantage of the map over the unordered_map seems to be the ease of use, it only needs a comparer.
22.
▲
by
dfkf
12y ago
Only three rust benchmarks use unsafe code, in one of them it's virtually mandatory, and in another it's just one line. On a side note, rust compiler enforces naming conventions, which is kind of cute.
23.
▲
by
dfkf
12y ago
Bot google and facebook have very strong domestic competitors in Russia. So their withdrawal from the country would achieve exactly nothing.
24.
▲
by
dfkf
12y ago
https://github.com/stevebest/suicide/blob/master/suicide.md Here you are. Posted by a Russian citizen from a commit labeled "Privet, Roskomnadzor!" Such a rebel! Demonstrating the world unspeak
25.
▲
by
dfkf
12y ago
If you happen to use cyrillic in your source code (for comments or even strings) and constantly switch between latin and cyrillic, then this actually happens with а "c" letter, because both latin and cyrillic "c" occupy
26.
▲
by
dfkf
12y ago
Most of the features make the language more consistent and reduce syntactic noise, making it easier to read. The only feature that puts additional mental burden is the elvis operator.
27.
▲
by
dfkf
12y ago
It's Java's take on this. Java's version is somewhat longer, however. public delegate void Action<in T1>(T1 arg1); public delegate void Action<in T1, in T2>(T1 arg1, T2 arg2); public delegate void Action&l
28.
▲
by
dfkf
12y ago
Handling of strings is way too complex for very little gain, but the rest - trailing commas, comments and no quotes for alphanumeric keys - are actually quite useful. They complicate syntax only a little, yet make writing JSON by hand much
29.
▲
by
dfkf
12y ago
Key piece: "In the past few days, Russian troops bearing the flag of a previously unknown country, Novorossiya, have marched across the border of southeastern Ukraine." There were ten Russian soldiers from the border patrol who we
30.
▲
by
dfkf
12y ago
There actually is, if by Russia you mean Russian government. Support to "Novorossiya" simply can't achieve anything, perhaps only help it last a little bit longer. When Russia wanted to change the status quo it had legal excu
More ›