Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sacado2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
sacado2
6y ago
There are many diacritics in French, and not having a key for the most frequent accentuated letters is far from optimal (for instance, the previous sentence in French would contain 5 diacritics).
122.
▲
by
sacado2
6y ago
Even if your code is written in English, some text still has to be written in your own language (in particular, anything the end user will happen to read). And, although you can write English from a (say) French keyboard, writing French fr
123.
▲
by
sacado2
6y ago
> we observe that checking an alleged regex+backtrack solution is a polynomial task That's the point I missed at first. That's good news, because I was pretty sure perl regex were accidentally Turing complete, I don't know
124.
▲
by
sacado2
6y ago
Am I missing something? I read it the other way: all CNF instances can be rewritten as regexp + backreferences, meaning re + backreferences are at least as general that SAT, not at most as . Meaning, they could be higher in the polynomia
125.
▲
by
sacado2
6y ago
Yeah, I meant it the other way, if those regexps are Turing-complete, not all of them have an equivalent CNF representation, contrarily to what the article seems to state in its first paragraph (and title). That being said, regexps were not
126.
▲
by
sacado2
6y ago
One of the cool features of SAT problems is that they always terminate (if you're patient enough). Aren't regex, especially with backreferences, Turing-complete though? If so, they could be caught in an infinite loop, meaning they
127.
▲
by
sacado2
6y ago
> This doesn't make sense. How can you search for a string if you're already in a string? I can't think of a realistic situation where that would be useful or even really possible. query = "select * from table w
128.
▲
by
sacado2
6y ago
And that's where we need more journalitic (does that word exist?) writing. Even by non-journalists, I mean. Make a long form content, start with the most important information in the first paragraph, and give more and more developments
129.
▲
by
sacado2
6y ago
I'm surprised by this content, because Google actually changed the web for the better in this regard. Anybody remembers the ezinearticles era? Where people kept publishing the same short articles filled with just a few keywords and not
130.
▲
by
sacado2
6y ago
You can only add methods on types that were defined in the current package. As a consequence, you can't add methods to built-in types. But that's rarely something you want to do anyway (I can't think of a real-world situation
131.
▲
by
sacado2
6y ago
It's not only about the main compiler. Go has tons of third-party tools (linters mainly) that can parse go code, because it's so easy to write one. Most of them wouldn't exist if parsing was a PITA.
132.
▲
by
sacado2
6y ago
I'm ready to bet that with <>, you'd introduce ambiguity in the grammar, making parsing code (and, as a consequence, writing tools for the language) much more complicated.
133.
▲
by
sacado2
6y ago
Just sell ugly food cheaper and people will start to buy it. In fact I wonder if there is not a huge market for someone who would say "No need to choose anymore: with 'ugly foods', you can save money and the planet"
134.
▲
by
sacado2
6y ago
> Maybe I’m doing something wrong, but my Go code is often littered with casts between different integer sizes and signedness. It can actually be a feature, and one of the things that brought me to go, as you can define your own integer
135.
▲
by
sacado2
6y ago
I grew up with the understanding that "systems programming" is the opposite of "application programming", or, in other words, the opposite of "programs that the end user will use". So that would include the ker
136.
▲
by
sacado2
6y ago
Actually I think go is semantically much closer to oberon than to C.
137.
▲
by
sacado2
6y ago
> Maybe because you know that there's only one timezone for the UK And that's where things start to get fun, because there are actually several timezones in the UK if you include its dependencies. I don't really know how i
138.
▲
by
sacado2
6y ago
Ada had them before Haskell, and I'm not even sure it was the first language with them.
139.
▲
by
sacado2
6y ago
What's a sum operation though? Is the sum of a, b and c the same thing as the sum of b, c and a?
140.
▲
by
sacado2
6y ago
Not only this, but blogging can also be a marketing tool, where you (or a company you're writing for) publish articles not as an end in themselves, but as a way to show you're an expert in a given domain. For SEO reasons, but not
141.
▲
by
sacado2
6y ago
I totally agree it's great and tend to enjoy languages that don't provide the user with unchecked nulls. It's a cool tool, but I don't think it's worth a billion dollars. If I had to choose, I'd rather take non
142.
▲
by
sacado2
6y ago
> Nulls, the billion dollar mistake. That "billion dollar mistakes" is an excellent marketing expression (nobody wants to make billion-dollar mistakes! We should avoid that null they talk about! It looks so expensive!) but I do
143.
▲
by
sacado2
6y ago
> On the other hand, same thing can be accomplished by using company-wise style enforcers But you can't do that with open-source libraries. When I use an open source library, I can audit its code very easily, and this is not always
144.
▲
by
sacado2
6y ago
Imagine we're working together and I have some text document I want you to work on and update. If I send you the text by email, I send a copy of it (the original text is still on my computer). If you modify that copy and keep it for
145.
▲
by
sacado2
6y ago
I think (and this is, somehow, related to pointers) the most complicated thing in go for a beginner (and even for someone who can program but only knows higher level languages, java included) is slices. Slices are hard to grasp, you can mod
146.
▲
by
sacado2
6y ago
I'm an introvert and like to have a quiet place of my own. I work way better this way. I'm not alone in my office, though, we're 2 in the same room, and the door is always open, and everyone else in keeps his office's do
147.
▲
by
sacado2
6y ago
I had the same experience with that very problem. Didn't understand it before I programed it.
148.
▲
by
sacado2
7y ago
Absolutely. But in practice, I can't think of a problem that coulnd't be solved with OWL (or some other formalism like answer set programming) and where prolog would be the best solution (rather than more "traditional" p
149.
▲
by
sacado2
7y ago
Nowadays, ontology-management systems like Protégé and SPARQL can more or less solve all problems prolog can solve, while providing higher-level formalisms and with the guarantee your query will terminate.
150.
▲
by
sacado2
7y ago
You can just enjoy it for yourself, in a private room. I'm not that much of an art fan, but I'd love to have an authentic Van Gogh in front of my bed. I guess a rich art fan who doesn't care about ethics would be thrilled as
More ›