Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sean1708
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
121.
▲
by
Sean1708
7y ago
> The latter is something that isn't in any languages I would consider production-ready What languages have you seen it in?
122.
▲
by
Sean1708
7y ago
> C, D, C++, rust, and nim should all have comparable performance; they all go through gcc|llvm, and all have the same optimizations. That's not necessarily true. For example language semantics (essentially how much information the
123.
▲
by
Sean1708
7y ago
Saying that something is professional negligence is not a personal attack.
124.
▲
by
Sean1708
7y ago
How do objects removing branching from an algorithm? It may not be there as an if-statement, but (unless I'm missing something) you'll still conceptually have a branch.
125.
▲
by
Sean1708
7y ago
IC?
126.
▲
by
Sean1708
7y ago
Getting a whole team to try out static typing on a language that they already know is far easier than getting a whole team to learn an entirely new language.
127.
▲
by
Sean1708
7y ago
I'm fairly sure (but admittedly not certain) that captcha uses non-cookie and non-account based methods for identifying users, so I don't those methods would work.
128.
▲
by
Sean1708
7y ago
> You can have 2x and 3x side by side without having to reinstall and uninstall anything. You can do that anyway, `python` is always Python 2 (except on Arch where `python` is Python 3 and the Python 2 executable is `python2`) and the Py
129.
▲
by
Sean1708
7y ago
As far as I'm aware they're not changing anything about which shells are installed or which executable /bin/sh points to they're just changing the default login shell for a new user, so nothing should have to chan
130.
▲
by
Sean1708
7y ago
The point is that apple don't want to update bash because they don't want to ship software that uses GPLv3 but they also don't want to keep shipping a decade old version of bash as the default shell, they aren't doing
131.
▲
by
Sean1708
7y ago
To be honest I feel like this is throwing the baby out with the bathwater somewhat. If you're writing a script for a system without bash you'll almost certainly know it, so you might as well just put bash in your shebang. I spent
132.
▲
by
Sean1708
7y ago
This book might be worth a look: http://pages.tacc.utexas.edu/~eijkhout/istc/html/index.html
133.
▲
by
Sean1708
7y ago
So what about the "and similar approaches" part of your comment? The author seems to have only minor issues with Poetry (for example) and I agree with him, it fixes or provides simple workarounds for all the major pain points of P
134.
▲
by
Sean1708
7y ago
> unambiguous failure of pipfile/pipenv and similar approaches. How have those approaches failed?
135.
▲
by
Sean1708
8y ago
How would you check them at compile time without using dependent types (at least it doesn't look to me like these are dependent types)?
136.
▲
by
Sean1708
8y ago
Why would a set have to be a tree? In fact would expect trees to be the less common way to implement sets (I would expect hash tables to be more common).
137.
▲
by
Sean1708
8y ago
That's fair, but in practical terms how often are you going to come across a problem like this when you're values aren't hashable? Maybe I'm missing something obvious, but I feel like the kind of types that aren't h
138.
▲
by
Sean1708
8y ago
But there are other datasets that would do the same thing with medians.
139.
▲
by
Sean1708
8y ago
In C and C++ (where you don't have the >>> operator), you can do this: 6: mid = ((unsigned int)low + (unsigned int)high)) >> 1; Since you're casting to unsigned int anyway, can't you ju
140.
▲
by
Sean1708
8y ago
Do you mean comparison with None? Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >
141.
▲
by
Sean1708
8y ago
> as dicts are essentially sets with values attached. Interestingly enough some languages actually do the opposite. In Rust for example a set is literally just a dictionary with unit as the value[0] and unit is essentially a way of expre
142.
▲
by
Sean1708
8y ago
> Backwards compatibility constraints mean that SQLite is only able to store values that are NULL, integers, floating-point numbers, text, and BLOBs. It is not possible to add a sixth "JSON" type. I'd be interested to know
143.
▲
by
Sean1708
8y ago
> You can process four independent instructions per cycle in parallel is this down to pipelining, or is that separate?
144.
▲
by
Sean1708
8y ago
Oh god the amount of scripts I have that do something like: while True: for i, item in enumerate(list): print(i, item, sep=" - ") choice = input() if valid(choice): break This would make those so
145.
▲
by
Sean1708
8y ago
> Keep in mind this is essentially the same concept as the big scary AI from OpenAI that is making the news recently. They use neural nets, not markov chains, but the idea is similar: given a word, predict the next word. Isn't this
146.
▲
by
Sean1708
8y ago
You can do some pretty interesting things with indexing in Julia: https://julialang.org/blog/2016/02/iteration
147.
▲
by
Sean1708
8y ago
My rule has always been that if you're going to write a single line if-statement it should actually be a single line if-statement, i.e. no line break between the condition and the curly bracket.
148.
▲
by
Sean1708
8y ago
https://news.ycombinator.com/formatdoc It's hidden behind the FAQ.
149.
▲
by
Sean1708
8y ago
I don't think the big news of the article is the Python kernel, but rather the C++ library that makes writing other kernels easier.
150.
▲
by
Sean1708
8y ago
To be fair it's not really worth setting up a blog just for a single post, and OP probably didn't know about things like threadreaderapp.
More ›