Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
p4bl0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
181.
▲
by
p4bl0
2y ago
Because gTLD must be at least three letters long, and ccTLD must be two letters long. That's what the rule says. But of course, such rules are arbitrary and can be changed.
182.
▲
by
p4bl0
2y ago
Because the country disappeared before that rules was set in place.
183.
▲
by
p4bl0
2y ago
Indeed! In particular in higher-education and research many people moved over to Bluesky in the past two weeks. In fact, the biggest "starter pack" on the platform is the French “#HelloESR” pack (ESR means "enseignement supér
184.
▲
by
p4bl0
2y ago
I was coming to say exactly this. I use OCaml a lot and never had a problem with lets. On the other hand, nested match with where you must either use parentheses or begin…end can be confusing for beginners and stays annoying forever.
185.
▲
by
p4bl0
2y ago
It's a neat trick, but it still depends on uv being installed and network connectivity. What's the advantage of this that makes it worth despite these constraints, compared to e.g. using pyinstaller [1] to build and distribute a s
186.
▲
by
p4bl0
2y ago
“ We need to go deeper ” ( https://i.kym-cdn.com/photos/images/newsfeed/000/384/176/d2f... )
187.
▲
by
p4bl0
2y ago
Yet it still participates and encourages the bibliometrics game, which benefits the big publishers. A simple way to make a step away from encouraging bibliometrics (which would be a step in the right direction) would be to list publications
188.
▲
by
p4bl0
2y ago
I wish GScholar wouldn't embrace bibliometrics so much. Sort papers by date (most recent papers first) by default on an author's page rather than by citation count, or at least give author the choice to individually opt-in to sort
189.
▲
by
p4bl0
2y ago
It brings me 20 years back. I liked the nostalgia :).
190.
▲
by
p4bl0
2y ago
Of course! And I strongly agree that static analysis is a good thing. But PHP still is a dynamically typed language and most of its development and usage is done with this dynamic approach in mind. It's not a XOR either, we can have be
191.
▲
by
p4bl0
2y ago
Oh okay, you would do it in reverse. I strongly agree with that. But that means the new feature is opt-out rather than opt-in, and it may break some old code. Maybe it should be done in two-steps (opt-in + deprecation, then opt-out).
192.
▲
by
p4bl0
2y ago
Exploit I don't know, but as any stricter type verification, it would catch some bugs for sure. Note that builtin functions already throw an ArgumentCountError when passing fewer OR more parameters than the signature allows. My proposa
193.
▲
by
p4bl0
2y ago
Yep! And currently the behavior is not consistent with user defined functions.
194.
▲
by
p4bl0
2y ago
That's equivalent to my initial proposal, except that mine adds the information in the type signature of the function rather than in a decorator.
195.
▲
by
p4bl0
2y ago
I know of func_get_args, but proper variadic functions have been a thing since PHP 5.6 (released more than 10 years ago) using the ... operator. Also, my initial proposal doesn't break existing code :).
196.
▲
by
p4bl0
2y ago
Indeed on the PHP internals mailing list some people were saying that it would be better to entirely deprecate passing extra arguments to a non-variadic function, without adding syntax/keyword to the language.
197.
▲
by
p4bl0
2y ago
> the only way you’d ever know is through static analysis Not for builtin PHP functions which already throw errors on arity mismatch. > this would literally break class autoloading in symfony, and even the engine itself, which relies
198.
▲
by
p4bl0
2y ago
Something I'd really like is for PHP to somehow be stricter on the number of arguments passed to a function. As of now, PHP emits an error if arguments are missing but not if there are too many. A way to bake that in without breaking o
199.
▲
by
p4bl0
2y ago
This is what I've always done naturally for the 20+ years I've been writing CSS. The only difference is that I put animation at the end, probably because it came much later than the rest.
200.
▲
Mergiraf: a syntax-aware merge driver for Git
(mergiraf.org)
432 points
by
p4bl0
2y ago
|
87 comments
201.
▲
by
p4bl0
2y ago
People interested in this will probably also like reading this friendly introduction to differential privacy: https://desfontain.es/blog/friendly-intro-to-differential-pr... , which is friendly yet goes into a lot of de
202.
▲
Friendly Introduction to Differential Privacy
(desfontain.es)
1 points
by
p4bl0
2y ago
|
0 comments
203.
▲
by
p4bl0
2y ago
Does Gitea offer features like continuous integration, pages, user permission management, etc?
204.
▲
by
p4bl0
2y ago
I don't get where the `-` comes from in `key-value` result lines after the "refactoring" title. I feel like it should stay a `,` like at the beginning. Can someone more knowledgeable in Prolog explain that? Is that because of
205.
▲
by
p4bl0
2y ago
I'm not sure the proposed approach would work, in particular on ebook readers. But if if does, I believe margins may not be the right way to do it. Padding might be however, because it is actually inside the box (while margins of eleme
206.
▲
by
p4bl0
2y ago
> Why would someone use a walled-garden instead of a protocol ? Because it actually works. I've tried countless of times to use Matrix with different groups of people and every single time there comes a point after a few days where
207.
▲
by
p4bl0
2y ago
It works great. I actually build it for a few friends initially and now I have about a hundred people using it, mostly for personal web pages (which it was designed for), but not only. I also use it to manage the websites of my uni departme
208.
▲
by
p4bl0
2y ago
Amusingly, my static site generator CMS does precisely the reverse of what's done here. During development/updating of the website, all pages and posts are entries in an SQLite database that is manipulated through a web interface
209.
▲
by
p4bl0
2y ago
I was also bugged by that. I imagine that the meta variables foo and bar are at fault here, and that probably the actual package names had a common suffix like firstPkg and secondPkg. A common suffix of length three is enough in this case t
210.
▲
by
p4bl0
2y ago
Héhéhé. That is fun !
More ›