Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benibela
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
271.
▲
by
benibela
5y ago
Well, yes, but also no An empty query is not valid. There needs to be something besides the comment
272.
▲
by
benibela
5y ago
XPath does general data processing not just selection E.g. when you have a list of numbers on the website, XPath can calculate the sum or the maximum of the numbers Or you have a list of names "Last name, First name", then you can
273.
▲
by
benibela
5y ago
It can't do exceptions or inheritance It is more a C replacement
274.
▲
by
benibela
5y ago
Or Pascal. Wirth's most popular languages It has a unique combination of features that I cannot find in any other languages Unfortunately there is a disturbing lack of quality libraries. I have to write everything myself. Really everyt
275.
▲
by
benibela
5y ago
These benchmark things reminds me of an anecdote I saw today in the D group: >Back in the 80's (!) computer magazines regularly ran C compiler benchmark results. (At one time I counted 30 C compilers available for the PC.) >I too
276.
▲
by
benibela
5y ago
Actually, Pascal has slices They are just so obscure, I forgot about them and no one uses them. No users, no problems They are not part of the normal type system. You cannot declare a variable of a type slice. Nor a field. But when a parame
277.
▲
by
benibela
5y ago
In Pascal, there are no slices No slices, no problems If you need to work with a part of a string, you can make two ordinary integer variables for offset and length
278.
▲
by
benibela
5y ago
I still have these problems > - programming language I decided to not use C, because it is unsafe, and write all my code in Pascal. Now the FreePascal double parsing does not work correctly For one, it always uses 80-bit float. Even if p
279.
▲
by
benibela
5y ago
And you could not write 1e300 since it is not exact You need to write 10000000000000000525047602552044202487044685811081591549158541155118024579889081957863713750804478640437044438328838781769425232353604305756447921847867069828483872009265
280.
▲
by
benibela
5y ago
If you want to have that in production, you should run a test suite on it. There is a popular test suite by nst. Although some go too far. I just had to write my own JSON parser (resp. rewrite one), because the parser I was using did not pa
281.
▲
by
benibela
5y ago
There is a good chance that electron comes with a highly optimized JSON parser that is vastly faster the one in the article
282.
▲
by
benibela
5y ago
That is why scientific papers have so much "let x be ..."
283.
▲
by
benibela
5y ago
I use another regex library that does that and do not like it at all Something like \w makes the regex complexity explode. It spends more time building the regex than actually matching it.
284.
▲
The FreePascal Compiler has moved to Gitlab
(gitlab.com)
7 points
by
benibela
5y ago
|
0 comments
285.
▲
by
benibela
5y ago
>a comet split into several pieces large enough to crash into 4 different continents That reminds me of Tomb Raider 3
286.
▲
by
benibela
5y ago
Delphi/Pascal has 2-layered constructors. There is a virtual class method to allocate memory and a so called constructor that initializes fields that should be zero. The user of a class, only calls the constructor. The constructor then
287.
▲
by
benibela
5y ago
At first I read the title as Plan 9 That would explain why it is not more popular. If you install your software in a black hole, you cannot get any computed data from it out again.
288.
▲
by
benibela
5y ago
When I learned programming 20 years ago, it went like this Start QBASIC Enter: PRINT "Hello World!" Run the program. Congratulations, you wrote your first program and have become a software developer
289.
▲
by
benibela
5y ago
Or in Pascal try ... except end wrapped around the error/exception generating code
290.
▲
by
benibela
5y ago
They are making new languages far too often It started with XPath, then came XPath 2, then XQuery 1, then XPath 3.0 and XQuery 3.0, and then XPath 3.1 and XQuery 3.1. Six new languages each more expressive than previous one. That is why it
291.
▲
by
benibela
5y ago
> I could use something similar to jq, but for XML. That would be XPath/XQuery I have spent 15 years implementing that in Xidel >Or something like a lovechild of sed, awk, seq, and cut, with regexp match groups and string interpo
292.
▲
by
benibela
5y ago
Or my Xidel to work with html and json with XPath
293.
▲
by
benibela
5y ago
Probably many people thought Majority-3SAT is PP-complete (even harder than NP) But it is in P
294.
▲
by
benibela
5y ago
But everyone loves FAANG Where would you want to work?
295.
▲
by
benibela
5y ago
Linked lists are better for immutable/persistent structures
296.
▲
by
benibela
5y ago
Doubling the volume is not so weird, as long as you do not double the mass
297.
▲
by
benibela
5y ago
On the contrary. If you do a PhD, you can get paid by the university and build some net worth. And people are impressed when you say you have a PhD, but do not care when you tell them about a graveyard project
298.
▲
by
benibela
5y ago
A book management software to track the books I have borrowed from the libraries in my city by automatically syncing with the library account via the online catalog of the library. It is the worst project ever I am hardly getting any use
299.
▲
by
benibela
5y ago
I often do that, but now I have to click on cookie confirmation banners all the time. It is very annoying. Might just take seconds, but it sums, eventually I have been clicking on these banners for hours Sometimes these banners do not even
300.
▲
by
benibela
5y ago
But you could write launch, motion, or start instead
More ›