Better HN
topnewbestaskshowjobs
Log inSign up

zanellia

160 karma · joined Sep 22, 2020 (6y ago) · 59 submissions

PhD in numerical optimization and control

https://github.com/zanellia

Submissions

comment 1y ago · link · parent

I have the feeling that social media adoption can be very volatile - that makes me hope that something decentralized and healthier could take over soon.

comment 1y ago · link · parent

Maybe one catch on Flashes: it's not open-source, is it?

comment 1y ago · link · parent

Regarding Bluesky-based Flashes, there is an ongoing GoFundMe campaign, but it's been there for 7 months and hasn't reached its 40k goal. Regardless of the funding goal, aren't there enough people interested in this to make it happen?

comment 1y ago · link · parent

I think that's indeed one of the main problems, although I think people don't care because they don't understand what are the risks that directly concern them. A valid question would be at what point (if ever, and I want to believe that is going to happen, sooner or later) is the average user going to perceive the problems associated with centralized, censoring, opinion-steering platforms?

comment 1y ago · link · parent

I very much agree. I think that one of the fundamental things that would make it easier for a healthier way forward would be the ability to more easily move from one platform to the other, hence reducing inertia-induced monopoly. Bluesky's At Protocol baked in interoperability seems like a step forward.

comment 1y ago · link · parent

It’s worrying how much control platforms like Meta have over what people see. Their moderation and ranking systems often act as invisible filters—shadowbanning, or quietly removing reach without transparency.

This kind of centralization makes open discourse fragile. It’s why I think distributed and independent ways of sharing information are becoming essential—so no single company decides which voices are amplified or buried.

7.

Ask HN: How long until solid decentralized alternative to Instagram?

5 points · by zanellia · 1y ago · 10 comments

comment 4y ago · link · parent

Pretty cool! nimblas in particular is what I was looking for. Will move to matrix if I have any other question ;)

comment 4y ago · link · parent

Thanks for the answer! What I would find very useful is an API that allows one to call directly BLAS/LAPACK routines. Is that possible in SciNim? If not, how difficult would it be to write the necessary wrappers? I had a quick look at the repo, but could not find the answer myself :p

comment 4y ago · link · parent

Pretty cool. Would love to use Nim for scientific computing, but I am not sure how mature are, e.g., Neo (https://github.com/andreaferretti/neo) and alike. Any positive feedback?

comment 5y ago · link · parent

hmm I tend to be a bit skeptical about "ipse dixit"-like statements, but I think I got your point about compilers/transpilers :)

comment 5y ago · link · parent

Pretty cool! How do you manage multiple target languages with a single AST parser? Do you use an intermediate AST?

comment 5y ago · link · parent

Interfacing existing C code would be an important thing to be addressed. It is currently a missing feature, unfortunately.

comment 5y ago · link · parent

I agree that error handling is one of the main things to be improved. The problem is that in some cases the AST walker ends up in unhandled states and prometeo throws a generic exception with a line number only. Are you looking at something in particular? With basically 0 users at the moment, this kind of feedback is quite useful.

comment 5y ago · link · parent

Anyway, the main point is to give it a name that is as informative as possible. If I read "transpiler" I immediately make the connection with the fact that it translates a high-level language into another high-level language (which is what prometeo does)- but maybe I am biased.

comment 5y ago · link · parent

If you have a better reference I'd be happy to change my mind.

comment 5y ago · link · parent

Pretty cool! I should check how it works in more detail.

comment 5y ago · link · parent

No, that's not the timescale of interest, I would say. However, if the big chunk of computations is delegated to HPC libraries I would say that NumPy could be rather competitive there (although still not easy to embed). If instead you need to run many times the same piece of code where a large fraction is pure Python, of course, it would not change the picture with respect to the "small" computations scenario.

comment 5y ago · link · parent

Right, MATLAB Coder is a very related tool.

comment 5y ago · link · parent

I did look into Nim, but, given Python's maturity/popularity, I decided to stick with it as host language for the DSL.

comment 5y ago · link · parent

Good point, it should be easy to add Julia to the Fibonacci benchmark. Here is the Python code https://github.com/zanellia/prometeo/blob/master/examples/fi...

comment 5y ago · link · parent

I though about using Nim as a host language for the DSL for a while, but then decided to rely on Python simply because it is more mature (and I had already partially figured out how to manipulate Python ASTs to generate C code).

comment 5y ago · link · parent

It generates a Python extension, doesn't it? Would not know how to run it outside of Python.

comment 5y ago · link · parent

Right, for sure I would not need to re-invent the machinery to translate a class into a glorified C struct. The whole thing started with C in mind for portability arguments, but it might be a good idea to keep an eye on C++ as an option.

comment 5y ago · link · parent

Intrinsics (or directly assembly) are used in BLASFEO (https://github.com/giaf/blasfeo) the linear package used by prometeo. It would be cool to generate assembly directly for a few things, but that would require quite a bit of work!

comment 5y ago · link · parent

It's not so easy deploy an algorithm written in Julia on an embedded platform though, is it?

comment 5y ago · link · parent

Thanks for the question! My background is in numerical optimization for optimal control. Projects like this https://github.com/acados/acados motivated the development of prometeo. It's mostly about solving optimization problems as fast as possible to make optimal decisions in real-time.

comment 5y ago · link · parent

Not sure what a "superoptimizer" would look like in this context. For a reference, I know for sure that this https://github.com/giaf/blasfeo (which beats Intel MKL) was coded entirely by hand.

comment 5y ago · link · parent

hmm not sure, the compiled LLVM code would still depend on the runtime library?
12