Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
430gj9j
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
430gj9j
13y ago
In the examples, 0x3bffffffffffffffff decodes to -18446744073709551616, which doesn't fit into int64_t. Why didn't they switch to bignums after INT64_MIN (-9223372036854775808) instead? Seems a bit asymmetric.
2.
▲
by
430gj9j
13y ago
The full text is a little less alarmist: http://www.who.int/dg/speeches/2013/world_health_assembly_20...
3.
▲
by
430gj9j
13y ago
According to the original paper, 81% of SO users didn't provide their age, so to conclude that older programmers are more knowledgeable from this data seems unwarranted. The paper acknowledges however that SO population may not be a good pr
4.
▲
by
430gj9j
13y ago
The programmer inadvertently used a vendor-specific feature. This is the key difference. Nobody writes perfect, standards-compliant code all the time, so the compiler needs to tell you when you are doing this.
5.
▲
by
430gj9j
13y ago
A quote from Stroustrup: "Use of a supplier's language extensions and non-standard-conforming features limits the portability of your code and can prevent you from choosing a new implementation supplier." http://www.stroustrup.com/compiler
6.
▲
by
430gj9j
13y ago
And also here: http://connect.microsoft.com/VisualStudio/feedback/details/7... And again: http://connect.microsoft.com/VisualStudio/feedback/details/7...
7.
▲
C++ compiler accepts explicit constructor call
(connect.microsoft.com)
24 points
by
430gj9j
13y ago
|
29 comments
8.
▲
Data Race Detector (Go)
(tip.golang.org)
2 points
by
430gj9j
13y ago
|
0 comments
9.
▲
NumPyPy 2013 Developer Position
(morepypy.blogspot.co.uk)
1 points
by
430gj9j
14y ago
|
0 comments
10.
▲
by
430gj9j
14y ago
I'd love to see this with a little more curation. An example (there are more): calling Inmarsat a startup is a bit tenuous when they are LSE listed with a market cap of 2.8 billion.
11.
▲
by
430gj9j
14y ago
This would be a great analogy if countries in grey shared a common language.
12.
▲
by
430gj9j
14y ago
The article opens by quoting the NYTimes claiming the iPad's keyboard is "abysmal for typing anything over 140 characters", yet fails to address this point anywhere. Is touch as fast and accurate as a keyboard and mouse?
13.
▲
Pure virtual final functions : legal in C++11
(stackoverflow.com)
1 points
by
430gj9j
14y ago
|
0 comments
14.
▲
by
430gj9j
14y ago
The key is the same length as the data, making this a one-time pad rather than XOR encryption. http://en.wikipedia.org/wiki/One-time_pad
15.
▲
by
430gj9j
14y ago
Presumably you'd have to store the keys somewhere, given that only a savant would be able to memorise them. That somewhere will probably as easy to seize as the encrypted data.
16.
▲
by
430gj9j
14y ago
Yes. In a previous version I was trying to bypass string caching to make x==y return false.
17.
▲
by
430gj9j
14y ago
All languages have pitfalls. Including the author's beloved Java. For example: String x = "foo"; String y = "foo"; // Appears to work but compares references System.out.println(x[0] == x[1]); There's no substitute for knowi
18.
▲
by
430gj9j
14y ago
Bear in mind you can't hover on a tablet.
19.
▲
Bristol Pound launched to keep trade in the city
(bbc.co.uk)
1 points
by
430gj9j
14y ago
|
0 comments
20.
▲
by
430gj9j
14y ago
Ask what isn't in Go that is in Scala. The Go authors deliberately left out certain features to focus on what they call "clarity of design". I don't see them ever adding XML literals for instance!
21.
▲
by
430gj9j
14y ago
http://www.pythonect.org/ FTFY
22.
▲
by
430gj9j
14y ago
No copying here: struct person { int age; }; std::list<person> people; people.push_back(person()); people.back().age = 42;
23.
▲
by
430gj9j
14y ago
Last time I checked corporation tax was payable on profits, not turnover. http://www.hmrc.gov.uk/ct/getting-started/intro.htm
24.
▲
by
430gj9j
14y ago
This made me think: do browsers assume square pixels? So that an N by N pixel image will appear square when displayed? Or is that the responsibility of the OS?
25.
▲
by
430gj9j
14y ago
You're right, Python isn't beautifully minimal. But the Scheme version is boring ;) Rather than asking the interview candidate to use recursion for a problem that shouldn't be solved using recursion (unless in a language where recursion is
26.
▲
by
430gj9j
14y ago
Python version: exec "print 'Hello world'\n" * 100
27.
▲
by
430gj9j
15y ago
Bug: line 125 of application.js should read if (index !== -1) value = value.slice(index + length);