Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kilink
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
LendingClub Founder, Ousted in 2016, Settles Fraud Charges
(nytimes.com)
1 points
by
kilink
8y ago
|
0 comments
2.
▲
Bitcoin Cash Trading Now Available on GDAX
(blog.gdax.com)
5 points
by
kilink
9y ago
|
0 comments
3.
▲
These Guys Want to Lend You Money Against Your Bitcoin
(bloomberg.com)
3 points
by
kilink
9y ago
|
0 comments
4.
▲
by
kilink
10y ago
They mentioned msgpack was calling gc.enable(), but it looks like that issue was fixed quite a while ago in version 0.2.2: https://github.com/msgpack/msgpack-python/blob/2481c64cf162d...
5.
▲
by
kilink
10y ago
Maybe they mean data class inheritance, instead of subclassing? That's the only thing I know of that is planned for Kotlin 1.1 [1], and it's primarily useful for sealed classes (I've wanted this). [1] https://githu
6.
▲
by
kilink
10y ago
I think the advice is more relevant in the context of the specific language; it's not universal. In python you can go from attribute access to using a property (getter/setter) without breaking anything. The same is not true in a l
7.
▲
by
kilink
10y ago
...Or can you? import ctypes def tuple_setitem(t, index, item): obj = ctypes.py_object(t) item = ctypes.py_object(item) ref_count = ctypes.c_long.from_address(id(t)) original_count = ref_count.value if o
8.
▲
by
kilink
10y ago
I'm not sure if you are asking about Python, or Ruby. Anyway, both languages use value-based hashing for dictionaries. I am not a Rubyist, but I guess you are just expected to not mutate the keys? Ruby's dictionary implementation
9.
▲
by
kilink
10y ago
This is a Python specific restriction. Ruby for example allows mutable keys in dictionaries.
10.
▲
Hulu is eliminating its free, ad-supported streaming service
(theverge.com)
30 points
by
kilink
10y ago
|
53 comments
11.
▲
Tesla’s Big Loss Reflects Its Costly Ambitions
(nytimes.com)
6 points
by
kilink
10y ago
|
0 comments
12.
▲
by
kilink
10y ago
What about null?
13.
▲
by
kilink
10y ago
I'm not sure what you mean by error values being dropped on the floor by default. In Go or languages with ADTs you would have to consciously ignore an exception. Languages where pattern matching is prevalent force you to deal with the
14.
▲
by
kilink
10y ago
I was addressing your specific assertion with regard to encoding error conditions as reserved values in your return type's codomain, which I agree is ugly. One benefit of not throwing an exception is that you can maintain referential t
15.
▲
by
kilink
10y ago
> The problem usually is: What is the error code if your return type is int? Sure, you can define all negative ints as errors, or you provide a reference which is set when an error is encountered and so on, but that ends up being just an
16.
▲
by
kilink
10y ago
Things I dislike about Ion, having used it while at Amazon: - IonValues are mutable by default. I saw bugs where cached IonValues were accidentally changed, which is easy to do: IonSequence.extract clears the sequence [1], adding an IonValu
17.
▲
by
kilink
10y ago
That also wouldn't even compile. I also write in multiple languages, and for languages for which this is an issue I use a linter. This isn't even an issue in C if you compile everything with the appropriate flags (-Wall or -Wparen
18.
▲
by
kilink
10y ago
Sorry, it's just not practical to keep lines under 80 characters in some languages.
19.
▲
by
kilink
10y ago
For me it's not that it's confusing, it's annoying to read because it indicates that the programmer didn't actually take the time to learn the language, and is instead writing it as C/PHP something else where expres
20.
▲
by
kilink
10y ago
Java if statements only allow boolean expressions, so the thing that the Yoda condition is supposed to protect against isn't even possible. I think this is precisely what the author is talking about, as this style is a totally unnecess
21.
▲
Why Kotlin is my next programming language
(medium.com)
4 points
by
kilink
11y ago
|
0 comments
22.
▲
A Plan in Case Robots Take the Jobs: Give Everyone a Paycheck
(nytimes.com)
2 points
by
kilink
11y ago
|
0 comments
23.
▲
Kotlin and Ceylon
(medium.com)
3 points
by
kilink
11y ago
|
0 comments
24.
▲
Zenefits' new CEO just banned employees from drinking alcohol at the office
(businessinsider.com)
7 points
by
kilink
11y ago
|
1 comments
25.
▲
by
kilink
11y ago
That may true for Go, a language which still does not have a great dependency management story. I'm not sure this proverb is universal though.
26.
▲
by
kilink
11y ago
The parent was talking about namedtuple. >>> collections.namedtuple("test", "$") Traceback (most recent call last): ... ValueError: Type names and field names can only contain alphanumeric char
27.
▲
by
kilink
11y ago
If this were a big deal, it could be optimized using something like a key-sharing dict implementation [1]. You can keep the dict interface to accommodate column names that aren't valid identifiers, and avoid most of the memory overhead
28.
▲
Super Bowl 50 Further Divides San Francisco
(nytimes.com)
4 points
by
kilink
11y ago
|
0 comments
29.
▲
by
kilink
11y ago
There are so many other factors that ultimately determine GC performance. The GC must be tuned based on the workload. For instance, the out of the box defaults for things like newRatio [1] are not ideal for web services with lots of short-l
30.
▲
by
kilink
11y ago
I like Clojure quite a bit more than Java, but some of these are unfair if you are comparing against modern Java. For instance, the sorting example can be simplified: Comparator<User> userOrdering = Comparator.comparing(User::is
More ›