HNHacker News
TopNewBestAskShowJobs

antpls

1,216 karma · joined January 13, 2018

submissionscomments
antpls··on Icons – Google Fonts
Wouldn't it make more sense to have everything "hidden" by default and have an explicit "aria-include" ?
antpls··on Google admits Kubernetes container tech is too complex
There is a benefit : fixing each of these issues fixes them for everyone using K8S.

One of the goal of K8S is normalization/standardization of a complex topic to better share knowledge

antpls··on Nx: Multi-dimensional tensors Elixir lib with multi-staged compilation (CPU/GPU)
If I may ask, why is your company using Elixir? Wouldn't it make more sense to use Python everywhere on your web stack if you do scientific work on weather data?
antpls··on On navigating a large codebase
Maybe one could limit the graph to the happy path to begin with.

The output of a run of profile-guided optimisation could be used to discover that graph, and only the touched functions would be drawn. This graph could be useful to start with the codebase, without being too overwhelming with all the edge cases.

antpls··on WTF Python: Exploring and understanding Python through surprising snippets
I disagree.

The intention in foo is not for x and y to be numpy arrays, it is to add 2 objects together. "If it walks like a duck and it quacks like a duck, then it must be a duck".

That function can work on anything implementing +, this is the philosophy of Python. It enables the whole numpy, dask, TensorFlow ecosystem.

If you intend to limit it to numpy arrays, you either use numpy 1.20's static types, or you add more checks at the beginning of the function, such as np.asarray(x).

antpls··on Can you make a basic web app without Googling? I can’t
What software did you use to browse/search in it?
antpls··on Pip has dropped support for Python 2
I understand the benefit in theory, but in practice, you had two options :

- the codebase had to be modified to work on both versions at the same time

- you had to maintain two versions in different branches for a while

Is there any data to show which options was most often chosen amongst all pypi packages? I suspect that the second option was more popular for the most important packages of the ecosystem

antpls··on But how, exactly, do databases use mmap?
Is there a known library with a cross platform abstraction that could help?
antpls··on Pip has dropped support for Python 2
I dont buy this argument at all. Any sufficiently complex Python 2 project does not work with Python 3 without modification, there is _no_ cross-version compatibility.

And if you wanted to try that yourself anyway, changing all .py to .py3 in a directory is one unix command... It could easily have been part of a 2to3 tool

antpls··on Pip has dropped support for Python 2
Renaming to a complete different name is not necessary, everyone understands a major version breaks compatibility. Python3 is still very close to Python2 both in syntax and spirit.

But there was a sort of broken promise given by the Python creators: Python3 was almost like Python2, but every library author had to review and repackage their libraries, anyway.

At that point, Python 3 should have been unambiguously incompatible with Python 2 :

  - the only allowed file extension should be py3

  - all environment variables should have been duplicated with a "3" (it shouldn't read or modify Python 2 env vars)

  - all installation folders should have been duplicated with "3"

  - all tools like pip should be suffixed with "3"

  - and most importantly, it shouldn't try to  optimistically run previous Python2 code or previous v2 tools
The mistake was that you could use "pip" or "python" in bash scripts/shell, and not know if python2 or python3 were going to run.

Still today, you can run "python" in a recent version of Ubuntu or Fedora, and it will be Python 3. Only "python3" should be possible. Distro are repeating the same mistake than with Python 2, and we will struggle again with Python 4, if there is any Python 4.

Many headaches wouldn't have happened if "python" was reserved to Python 2.

Pro tip to language and distro maintainers : make the major version part of the language name and executable, from version 1.

antpls··on France has passed a law protecting the sounds and smells of the countryside
Those types of law hurt my feelings. I have studied and I'm working so hard every day, all of this to make sure the countryside is stuck in the past?

It makes me want to leave France.

antpls··on Bitcoin Core Lead Maintainer Steps Back, Encourages Decentralization
> From the angle that bitcoin is useless, it's easy to dismiss it as waste.

The debate is not about useless/useful, it is about : can we solve the same needs with a lot less spend energy?

> Use resources the way you wish and so will others. Free markets will decide where scarce resources work best.

That way of thinking leads us to the carbon catastrophe the entire world is trying to reverse right now.

antpls··on AWS announces forks of Elasticsearch and Kibana
I do not work at Elastic Search, which is why I asked the parent for a concrete example.
antpls··on AWS announces forks of Elasticsearch and Kibana
> We got better answers out of random Google searches and a 20 minute conversation with a friend of a friend.

On the other hand, if you were asking support to train you on "how to do A, B, C" while you didn't even check the documentation nor made a basic google search, I can understand why you were disappointed. Paying more for support doesn't change the nature of it, it doesn't magically become a google bot for you.

Could you maybe give an example on the issues you reported to support ?

antpls··on Again on 0-based vs. 1-based indexing
My own experience disagrees with your anecdote, but I guess it's different for everyone.

I learned programming by myself when I was a teenager, and 0-indexed never was an issue.

We learn very early on as kids at school that there are 10 digit numbers, not 9. You learn to write 0 before any other characters. On every digit pad, such as phone dial, there is a "0".

If I ask you the list of digit numbers, 0 is the first element.

There is nothing counter-intuitive about that in my opinion, even for a kid.

antpls··on Julia adoption keeps climbing
> "Because Julia’s compiler is different from the interpreters used for languages like Python or R, you may find that Julia’s performance is unintuitive at first. If you find that something is slow, we highly recommend reading through the Performance Tips section before trying anything else. Once you understand how Julia works, it’s easy to write code that’s nearly as fast as C."

If Julia needs a "Performance Tips" section to produce fast code, I might as well use Python.

The "speed" from Julia comes from LLVM, but there is nothing stopping Python to use LLVM as well where it _makes sense_ (which is the case with XLA in TensorFlow, for example).

I see no plus value in learning Julia over existing tools, there is nothing revolutionary or nothing that could alleviate future risks.

antpls··on Aegis Authenticator – Open-source 2FA for Android
I have no printer at home. Does anyone know how to backup all those QRcodes on paper ?
antpls··on Why Zig when there is already C++, D, and Rust?
Caches are everywhere, and systems have now 5 layers of different memories, from L1 to a network attached storage, plus accelerators memories such as GPU.

I would like a language designed to target a hierarchical-memory system. I would like a language that forces me write single-threaded batched (or "blocked") algorithms with low cache misses.

How many pieces of code are out there where an easy x4 speedup could be achieved today if there were written with batched operations from the start? (It also shows how limited are the compiler in autovectorizing)

Rust gives me guarantes regarding memory safety, I would like a language that gives me guarantees that SIMD instructions and 2 cache levels are correctly used, without having to read the source code and compiler output.

antpls··on Molly for Android: A fork of Signal for Android with passphrase lock
But how do you validate that they are actually running SGX server side?
antpls··on Molly for Android: A fork of Signal for Android with passphrase lock
Signal has reproducible build for Android : https://github.com/signalapp/Signal-Android/blob/master/repr...

I didn't try, but I don't see how it could be more straightforward than just launching a docker container

antpls··on Element – All-in-one secure chat app for teams, friends and organisations
For anyone wondering how it compares to Signal privacy wise:

Signal works with a contact list, for private 1 to 1 and private groups. You need a phone number to use it, and they claim to encrypt almost all metadata, such as message senders. Signal claims they cannot read the content nor the history of users actions (but you have to trust them on that, they claim to use SGX enclave stuff, but can anyone technically verify that they do what they say they are doing?)

Element works with rooms, there is no contact list. A 1 to 1 conversation is a room with 2 people. The homeserver Matrix.org stores all metadata and they are readable (metadata are not private/not encrypted) by Matrix for some features to work. You only need a nickname to use it (at least for now). The content of conversations are e2e encrypted. In theory, i understand it would be possible for a matrix server to delete any metadata/messages once messages are delivered, but some features would not work, and you would also have to trust the server to actually delete the metadata.

Would be happy to read anyone who could correct or complete me.

antpls··on WhatsApp gives users an ultimatum: Share data with Facebook or stop using app
That's not true, I live in West Europe and I never used Whatsapp in my life. There are always alternatives to get informed here.
antpls··on WhatsApp gives users an ultimatum: Share data with Facebook or stop using app
At that point, I believe the strategy for Whatsapp was never to snoop into private conversations with other people, but to get all the transactions and interactions made with businesses.
antpls··on Gov.uk site broke Google realtime analytics during lockdown announcement
USA has a dedicated website : https://analytics.usa.gov/

I don't know if the data is from GA or a custom made solution

antpls··on Busiest hour ever in the history of Gov.uk 17M page requests just 21 5xx errors
Even if it's just static pages, one must admit the website is blazing fast, even on mobile.
antpls··on JupyterLab 3.0
Not sure about Mac, but on Linux, you install some docker images and it just works (modulo some docker flags to learn if you don't already know docker)
antpls··on Peer-reviewed papers are getting increasingly boring
Imagine if research was like github, but deduplicated : a giant graph database of unique facts, hypothesis, assumptions, proofs and experiment results, where anyone can contribute, from fixing a typo to publishing experiment dataset.

You would reference to previous knowledge without having to think about citing authors, because it would be automatically generated from the graph.

Then we would have hundreds of "knowledge verifiers", like we have bots scanning github, and ultimately bots deriving new knowledge and contributing to the graph.

The whole world would be building a shared database of knowledge, without any duplicated effort.

Most of the individual facts in this database would probably be boring (like the trivial facts in logic or mathematic), but once in a while, an interesting and important fact would be found.

antpls··on TabFS: Mount your Browser Tabs as a Filesystem
> more persistence stuff. as I said earlier, it would also be cool if you could put arbitrary files in the subtrees, so .git, Mac extended attrs, editor temp files, etc all work. make it able to behave like a 'real' filesystem. also as I said earlier, some weirdness in the fact that tabs are so disposable; they have a very different lifecycle from most parts of my real filesystem. how to nudge that?

It would be interesting to have a "persistent" layer where you could store stuff related to a domain. For example you would store userscripts in "ycombinator.com" folder, and they would load each time a tab of that domain is open. That would be a clean organization.

Then, if websites are made with TabFS in mind, the gap between the concepts of "apps" and "website" is probably filled.

antpls··on USDS Digital Services Playbook
Off-topic : I always wondered if serving one country also deserves the whole world.
antpls··on Visa Advertising Solutions (VAS) Opt Out
On my side, Firefox Android, it is verified as "Cloudflare\, Inc", which looks even more suspicious
← PreviousPage 3 of 28Next →