Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sean1708
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
Sean1708
7y ago
None of those reasons explain why a Makefile is any better than a scripting language.
62.
▲
by
Sean1708
7y ago
It's not just Go, loads of projects use Makefiles as a collection of Bash scripts. I've never really been certain what it actually buys you...
63.
▲
by
Sean1708
7y ago
It's like free market capitalism applied to the legal system.
64.
▲
by
Sean1708
7y ago
> And honestly I think phrasing isn't that important - if you know someone for months or years and aren't usually a dick - people won't automatically assume the worst. I'm actually quite surprised that you're the
65.
▲
by
Sean1708
7y ago
In [1]: N = 5 In [2]: def skewed(): ...: for p in range(2, 2*N - 1): ...: tmin = max(1, p - (N - 1)) ...: tmax = min((p + 1) // 2, N - 1) ...: for t in range(tmin, tmax + 1
66.
▲
by
Sean1708
7y ago
> I don't really see how new languages that are not compatible can be competitive. What exactly would you like Julia to be compatible with? Python? https://github.com/JuliaPy/PyCall.jl JS? https://gi
67.
▲
by
Sean1708
7y ago
Backslash escaping the number (or possibly the period) should work in most (and therein lies Markdown's biggest problem, the lack of a proper spec (fingers crossed for CommonMark)) parsers.
68.
▲
by
Sean1708
7y ago
The developer would still need to understand enough to be able to choose between them though, even if using them is identical.
69.
▲
by
Sean1708
7y ago
I wouldn't consider hate and empathy mutually exclusive personally (e.g. you can empathise with somebody that was bullied by their parents, but still hate them because they bully their children), but I do think that somebody that der
70.
▲
by
Sean1708
7y ago
> Of course you could train a NN to do arithmetic Are we really capable of teaching a NN to parse and calculate an arbitrary arithmetic expression? Because that sounds incredibly impressive...
71.
▲
by
Sean1708
7y ago
Often called buffering when applied to IO.
72.
▲
by
Sean1708
7y ago
The macro is just a wrapper around this (and a couple of other functions): https://docs.rs/futures/0.3.0/futures/future/fn.join.html And from a quick scan of the source it doesn't look like anything
73.
▲
by
Sean1708
7y ago
I think what makes this really tough morally (at least compared to "normal" fraud) is that this fraud can actually help the person being defrauded, and in some cases might be the only way to reasonably help them.
74.
▲
by
Sean1708
7y ago
(c) we have a much better understanding of the world than we have ever had before (though we still have a long way to go, and may never reach a full understanding) IMO it's mostly (c) but with a hearty helping of (b) on the side.
75.
▲
by
Sean1708
7y ago
I have to work with stacks a lot and doing while (item := stack.pop()) is not None: # ... is a lot harder to get wrong than item = stack.pop() while item is not None: # ... item = stack.pop() Really wish it was
76.
▲
by
Sean1708
7y ago
Also from what I can tell their argument is actually about replacing all uses of `=` with something else, and there's no reason the something else couldn't be `:=` (which has plenty of prior art, even if it has fallen out of favou
77.
▲
by
Sean1708
7y ago
> which is a variant of Markdown (or perhaps vice-versa) Neither, AsciiDoc has similar design goals to Markdown but it's a completely separate markup language. I like to explain AsciiDoc as a markup language that sits somewhere betw
78.
▲
by
Sean1708
7y ago
Am I being really stupid here? I keep getting 13/27, both by Baye's Theory P(BTB?∩B?BT | BT??∩??BT) = P(BT??∩??BT | BTB?∩B?BT) · P(BTB?∩B?BT) / P(BT??∩??BT) = 1 · (1/28 + 1/28 - 1/196) / (1/14 + 1
79.
▲
by
Sean1708
7y ago
To be fair the original problem statement is a bit ambiguous: > Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the
80.
▲
by
Sean1708
7y ago
I've always preferred to draw it out as a tree of what your your possible choices are at each stage, I find easier to get right and I find that people understand it more intuitively. ┌─────────────┼─────────────┐ G
81.
▲
by
Sean1708
7y ago
Maybe I'm In a slightly unique position because the role I hire for is "Algorithm Developer", but if you've memorised an algorithm I will keep asking you questions until I find an algorithm that you haven't memorise
82.
▲
by
Sean1708
7y ago
Ah ok, so you'd essentially allow it in fewer contexts? I would definitely have supported that, although I do think combining walrus with other boolean expressions in if and while is super useful and not particularly hard to understand
83.
▲
by
Sean1708
7y ago
For modules you can access the variable just fine, but for classes you need to use the mangled name: $ cat >foo.py __FOO = 1 class Foo: __FOO = 2 $ cat >bar.py import foo print(foo.__FOO) print(foo.Foo()._Foo__FO
84.
▲
by
Sean1708
7y ago
> I think we're ready for programming languages using some visually good Unicode characters Some already do: https://docs.julialang.org/en/v1/base/math/#Base.:!=
85.
▲
by
Sean1708
7y ago
And working with queues/stacks is much more pleasant (which I seem to do a lot...).
86.
▲
by
Sean1708
7y ago
How would this hypothetical syntax differ from the walrus operator? I.e. what is hard to understand with the walrus operator that wouldn't be with this new hypothetical syntax and why?
87.
▲
by
Sean1708
7y ago
I do think there are certain niches where this style can make code much more readable (e.g. parser combinator libraries) but otherwise I think it's just a really really poor imitation of proper currying support.
88.
▲
by
Sean1708
7y ago
From here: https://guix.gnu.org/manual/en/guix.html#GNU-Distribution > Our goal is to provide a practical 100% free software distribution of Linux-based and other variants of GNU, with a focus on the promotion
89.
▲
by
Sean1708
7y ago
I'm amazed nobody's mentioned BBC Good Food yet, literally the only recipe site I use.
90.
▲
by
Sean1708
7y ago
You could literally say that for all the examples, even in C you can omit the return value of main.
More ›