Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sacado2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
331.
▲
by
sacado2
8y ago
It solves all the issues I have with Javascript, that are all related to its weak and dynamic type system: awkward, unwanted type conversions all around, tons of "undefined is not a function", and lack of IDE integration. So, yes,
332.
▲
by
sacado2
8y ago
"stochastic treeset". Sounds way more scientific, which can be required to convince a pointy-hair boss. "Random" forest sounds... well, I can flip a coin too, how is that going to solve my problem? For the same reason, &
333.
▲
by
sacado2
8y ago
Mixing semantic web techs with ML is hot in the domain right now. Because ML solves problems symbolic approaches cannot solve (dealing with huge amounts of raw, poorly structured data) and symbolic approaches solve problems ML cannot (deali
334.
▲
by
sacado2
8y ago
There are different flavors of OWL nowadays. Some of them are especially dedicated to reason on huge volumes of data (polynomial algorithms), although they are not very expressive. Some are more expressive, but don't scale very well. S
335.
▲
by
sacado2
8y ago
In the given examples, it is. But I agree slices are complex in Go, probably the most complex thing for newcommers, and the main reason why I wouldn't recommend go as a first language.
336.
▲
by
sacado2
8y ago
I'm with you there, I have to admit I already did the true := false trick for the amusement and bewilderment of my colleagues.
337.
▲
by
sacado2
8y ago
> Only if you don't use it. But a few lines below you could very well be using true legitimately too, in which case it wont tell you: Good point! Edit: but then, your expected original variable name, `tue` in my example, would be us
338.
▲
by
sacado2
8y ago
What typo can that be though? If you wanted to do `if true == x` and typed `if true := x`, the compiler will tell you. If you mistyped your variable name, and wanted to do `tue := false` for instance, but inadvertantly typed `true := false`
339.
▲
by
sacado2
8y ago
Some of those in the original presentation can actually happen accidentally because of dynamic typing, though. For example, you could get a value from a JSON object, expect it to be a number, but have objects instead, and perform a {} + {}
340.
▲
by
sacado2
8y ago
Who does `true := false` in actual code, though? However, in real life, I've already wondered if using `new` as a variable is bad practice or not: old := x new := foo(&x) if old != new { return &Bar{} /
341.
▲
by
sacado2
8y ago
Hmm, the first few WATs are pretty bad examples. Any developer, gopher or not, should know that, when you reassign the value of a function parameter, the variable when the function returns still has its original value. It's pass-by-ref
342.
▲
by
sacado2
8y ago
IANAL, and I'm just speculating here, but the law could have been termed as "copyright laws apply to domain names on the internet" (i.e you can't use the name of a brand you don't own in a domain name), and acme.ser
343.
▲
by
sacado2
8y ago
Indeed. Go maps are slow as hell. Everytime I need them in a tight loop, I have to make an ad-hoc equivalent with slices, if at all possible.
344.
▲
by
sacado2
8y ago
Agreed. Regexps and format strings are cool. Regarding small, dedicated languages, I also like SQL and (to a lesser extent) CSS selectors.
345.
▲
by
sacado2
8y ago
> the only problem with exceptions is that developers don't use them, or don't use them properly, or aren't forced to use them Well, that's enough of a rationale for trying some other mechanism, isn't it? > Ex
346.
▲
by
sacado2
8y ago
That, and efficiency, as the generated code can be inlined in many cases.
347.
▲
by
sacado2
8y ago
Well, take any jazz standard. As you say, scores in jazz are at most a rough guide, not transcription of how the music should be played. Yet, if you take a score and make a MIDI player play it as it is written, any jazz fan will recognize t
348.
▲
by
sacado2
8y ago
would Elm do the trick?
349.
▲
by
sacado2
8y ago
I work in AI research (the symbolic, tree exploration kind, not machine learning) and go solves most of my problems in this domain, because it is productive enough to let me try new algorithms all the time, yet fast enough to let me actuall
350.
▲
by
sacado2
8y ago
"undefined" is a type that has exactly one possible value. An uninhabited type has no possible value.
351.
▲
by
sacado2
8y ago
> (Making special cases for NullPointerException or OutOfBoundsException, like some languages do, is, IMHO, a bad idea, that spreads the confusion between programming mistakes (i.e coming from the source code) and invalid runtime conditi
352.
▲
by
sacado2
8y ago
You were mentioning elevators crashing in the first place. But anyway elevators are quite frequently out of order, and I don't know how often it's a software vs mechanical vs administrative (ie "security check") problem.
353.
▲
by
sacado2
8y ago
> I bet there are terrorists who are not always interested in safe flies. They are not the typical customer, though. > In contrast to voting, the majority of a (democratic) society wants to have a reliable and trustworthy way of votin
354.
▲
by
sacado2
8y ago
The main customer of an ATM is the bank owning it. Not sure if "customer" is the correct word, let's say "owner", as opposed to "end user".
355.
▲
by
sacado2
8y ago
It happened 2 months ago, here in France. A kid died in the accident, and it was not a software problem. And there are tons of elevators out of order, on a daily basis, and more often for mechanical reasons than for software reasons (now ob
356.
▲
by
sacado2
8y ago
In a plane, the passengers, the pilot, the airport and the company owner all want the same thing : a safe fly. But In a vote, not everybody wants the same. As a mayor / senator / etc., I want as many votes as possible, and so do m
357.
▲
by
sacado2
8y ago
Here, the problem is we can't trust users to not try to break the system. When I buy a plane, I don't want the plane to crash. When I buy a voting machine, I'll do everything I can to break it so as to earn more votes than I
358.
▲
by
sacado2
8y ago
I'm in France, so my answer might not apply to where you live, but we typically have yearly festivals, monthly open mics in theaters, plus the occasional one-shot in theaters (where a famous storyteller is invited for his new/famo
359.
▲
by
sacado2
8y ago
I'm a storyteller, and yes the techniques are more or less the same. By telling the same story over and over again, you gain insight of when people are going to laugh, when they are going to keep quiet (you can even feel the tension so
360.
▲
by
sacado2
8y ago
Yes, italian, and used a lot in classical music.
More ›