HNHacker News
TopNewBestAskShowJobs

mamcx

3,329 karma · joined June 18, 2012

http://www.elmalabarista.com.

Rust, F#, Swift, Python.

Experience building database engines and ERP software.

Open for work and custom development!

submissionscomments
mamcx··on Is Software the UFOlogy of Engineering Disciplines?
The problem is the deps: You can have Rust with no nulls, but the OS was made by it. You can have a RDBMS with ACID, but the file system is liar.

Then, you can make a product that was applied engineering, but you can't replace all the others that not.

Civil engineering and friends have the advantage that is built on top of the universe, that despite claims to the contrary, was not hacked with perl!

mamcx··on I want a good parallel language [video]
Yes, SQL is poor.

What could be good is relational + array model. I have some ideas on https://tablam.org, and building not just the language but the optimizer in tandem I think will be very nice.

mamcx··on Why engineers can't be rational about programming languages
> I cannot agree that programming language choice is a primary driver in a product's success or failure....

This and similar are common ideas for the people that never see the real whole world of programming, and maybe have the fortune of be in the "startup" circles.

I see the opposite, and is very good predictor to know how bad a product or a team is, using the programming language AND the main DB engine, but that is because I live in the world of "enterprise" code where for example:

* I'm called to do a rewrite

* I see the screenshot of the main app

* I guess correctly was made with vb (first big alarm) (how I know: I never see in my circle anybody that do vb, php, c, c++ anything resembling a sane UI. BTW just the use of colors was enough to guess)

* I worry, but confirm, that use Access as the main db

* I discover that part of the data was ALSO in a excel file, that is used with the equivalent of "joins", and was not surprised to see things like this

Even without knowing more about the people that do it, that is far enough signals to guess much.

BTW, there are very good predictors, if Use: MySql, MonGo, Php, Js (almost whatever you wanna add here in terms of frameworks), VB, Perl, Android (aka: Java android and android itself without using iOS alongside), is likely terrible. Then Java or C# taking turns how much worse, but not as bad as the ones before. I sweat if somebody say it use C or C++. Probably enough to straight refuse to take the project.

Any use of not-obscure tech in this sector and is a good predictor to be more or less not-that-bad.

BTW: Also complex infra and related boilerplate is now probably a stronger predictor after some langs like python, go, typescript and more modern java/kotlin/c# has spread (and also more pg and much less nosql, but too much "cloud")

mamcx··on Crossfire: High-performance lockless spsc/mpsc/mpmc channels for Rust
If you are more like "parallel" than "async" totally yes!

here "parallel" is used in the most broad sense where you have (probably unrelated) tasks that are mostly independent for each other and run to completion. In that case "async" is an anti-pattern. So if you work more process-based that switch-based go!

mamcx··on You already have a Git server
Jujutsu make the interaction sane, and is far more logical than even mercurial (that I love too!)
mamcx··on Build your own database
You can decompose in 2 problems, because well is better, but is in fact one. Can be argued that is only this single problem:

How, in ACID way, store data that will be efficiently look it up later by a unknown number of clients and unknown access patterns, concurrently, without blocking all the participants, in a fast way?

And then add SQL (ouch!)

mamcx··on IDEs we had 30 years ago and lost (2023)
There was FoxPro too that was amazing and in some ways better than Delphi, in special for the integrate "command window" and the ability to show "widgets" at will (like BROWSE)
mamcx··on Exploring PostgreSQL 18's new UUIDv7 support
What could be better is to allow to create a type with custom display, in/out and internally set the native type IN SQL (this require to do it in c)
mamcx··on Upcoming Rust language features for kernel development
Well if that is what you call good from ORM (I agree Delphi for GUI, the others not so much).

A truly good one? FoxPro. Is very hard to know if you don't have exposure to what should be.

mamcx··on Ask HN: How does one build large front end apps without a framework like React?
A LOT of websites don't need a "front end" framework (apart of the one that is already there: html, css).

Could need some js library and that is a maybe.

In general:

If is like a eCommerce site, blog, wikipedia, forum? Not need

If is like a Game, Paint app, form builder? Need.

And how you learn it? Not use a framework, and try to stay with things more minimal, like tailwindcss.

mamcx··on Hacker News – The Good Parts
And dark mode!
mamcx··on Upcoming Rust language features for kernel development
> Rust exceling at GUIs is a bit of a strech.

BTW, this happens to almost all languages. Which ACTUAL good GUIs toolkits exist? And which ACTUAL languages HAVE good integration or implementation of them?

A good GUI kit AND integration is a bigger task than do a Os or a RDBMS. (And neither are many good languages for RDBMS)

mamcx··on Why Is SQLite Coded In C
But is optional. For this kind of project, is logical to adopt something like the tiger battle ethos and own all the code and have no external deps (or vendor them). Even do your own std if wanna.

Is hard work? But is not that different from what you see in certain C projects that neither use external deps

mamcx··on Copy-and-Patch: A Copy-and-Patch Tutorial
Question: For what else (apart from assembler) this could be a good idea?

I think WASM, but could be for a custom byte code? and more importantly, for a set of host-native functions (like I make some rust functions that somehow exploit this idea?)

mamcx··on Switch to Jujutsu Already: A Tutorial
"if some students fail the test, the problem is of the students, if many do, is of the teacher".

Git is a bad teacher. There are a lot of things that are profound yet easy to grasp when learned and other things are called bad products. Git is one of them.

mamcx··on Why Self-Host?
?

Any decent RDBMS can be backup live without issues. You only need to stop for restore (well without going with complex tricks)

mamcx··on Testing is better than data structures and algorithms
> Most people work on crud apps or similar

CRUD apps are the ones that become more complex, not less. The idea that a "CRUD app" is the poster child of simplicity is mega-misleading.

Building a ERP or similar will eat you alive in forms that making a total OS from scratch with all the features and more of linux not. (Probably the only part that is hard as "crud apps" is the drivers, and that is because you see what kind of madness is interface with others code)

mamcx··on Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
mmm, is possible to workaround?
mamcx··on Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
Also: Recently my videos "goes full black" for few milliseconds (not matter which way to see them, but yt is where I noted it more). I'm on M3, and can't pin point a reason.
mamcx··on Visual programming is stuck on the form
Also, the next one is relational tables.

Tables are super visual (even in forms like CSV).

mamcx··on macOS Tahoe is certified Unix 03 [pdf]
Also, the weird `fsync` behaviors is not part of it?
mamcx··on A cryptography expert on how Web3 started, and how it’s going
> tech nerds, coders, and hackers

This is the people that build it.

"Oh, somebody made me do it"

Great excuse!

mamcx··on Look Out for Bugs
> What actually prevents bugs at scale is boring stuff:

There is a layer above this: To understand, really, what are the requirements and to check if are delivered. You can have perfect code that do nothing of consequence. Is the equivalent of `this function is not used by anything` but more macro.

But of course, the problem is to decipher the code, where what you say helps a ton.

mamcx··on 'Make invalid states unrepresentable' considered harmful
No, this is wrong, and the example of the database is the best example.

Very regrettably, RBDMS (traditionally) has not support for the complete relational model, neither the way to represent nested relations and for what we have as today with algebraic types.

Making impossible to TRULY model the domain. (plus other factors related to sql and such).

Is the same as old OOP languages that also were incapable of do the same.

The INHABILITY of TRULY model the domain is what is harmful. You need to impledance mismatch all the time, everywhere.

The second thing: What is the DOMAIN?

And here is where you are into something: The DOMAIN of the database and the DOMAIN of the transport protocols and the DOMAIN of the GUI, etc are DISTINCT domains!

Was VERY common in the past that the DBA (that actually understand RDBMS not like most current devs) know that he must model the DB in ways that support not only N apps (with different domains) and hopefully provide a abstraction for them (in terms of VIEWS and functions) but also for the operators.

The article point to this, but incorrectly say is a problem of trying to make the invalid unrepresentable, when, if you have doing DBs for decades, is the total opposite.

For example, being unable to eliminate the mistake of NULL is a headache with not end. Or try to use `1 0` as bools, or need to fill the table with a lot of NULLables columns because you can't represent a algebraic OR.

mamcx··on SQL needed structure
The things `SQL` fail to do that enable this sort of things are:

* Store relation-on-cell: All the trick of so called `nosql` is that they can do nested data. THAT IS ALL

* Then, `join` is already inline

* Then, instead of the very poorly named `GROUP BY` it could has REAL `GROUP BY`!

That is all is need at the core

mamcx··on Poor man's bitemporal data system in SQLite and Clojure
The problem with `everything is a log` is that is very undisciplined, and trigger from the actual main table have this very serious advantages:

* Your main table has the correct shape, and the derived log too! * MOST of the queries are to that and for now

mamcx··on TPDE-LLVM: Faster LLVM -O0 Back-End
Ok, but then if this were done, then you could also emit LLVM after. It probably get worse timings, but, allow to make the transition palatable
mamcx··on Jujutsu for everyone
Other do a lot of nitpicking in workflows (with responses that are expected, like "but who cares" or "in git I could do the same"), but not answer this:

JJ is MORE powerful than git because has a BETTER SEMANTICS & ABSTRACTION.

That its. Is like when git emerge, it was more powerful than svn because was distributed.

I wanna make the point clear: Is NOT about the "amount of features or specific workflows" that with pain can be made on git and with effort could be retrofitted on jj eventually (if today are missed, like a equivalent of GitHub!).

The power is what abstraction made jj that is different to git: We work on "commits" all the time, and not need to manually sync the state. Everything derive from this.

And because is a better abstraction, it make more sense and is easier to understand.

The UX derive from this.

mamcx··on Ask HN: Best codebases to study to learn software design?
This has 2 key things:

* "well designed": What was the objectives and ideas...

* "codebases": How well that was implemented

They are a lot of lofty claims saying how this or that is "fast, secure, etc" but don't end like that in the actual implementation.

But most of the time, that could be seen in the "design claims" already! Good design is not just full of adjectives and nice sounding goals, but the concrete considerations, what was the trade-offs, false-starts, and reasons behind the decisions.

You can see some examples reading about the design of Erlang, early pascal, most RDBMS, etc.

So, you first mid/long term goal is to learn to distinguish what good design actual look like.

then, in relation with codebases then to be kinda easier: It actually follow the design?

A good example is the 'std' library of Rust. It has a lot of lofty claims about security and such things that could sound alarms, but then you dive in the code of it and see is there A LOT of care about it, and a lot of docs comments discussing this stuff and then the code match.

P.D: The "std" or equivalent of the lang is one of the most important codebases you need to learn and study, and the MAJOR way to judge how truly good is it.

mamcx··on Left to Right Programming
You are correct in that is the notation used, but that is not how it goes internally!
← PreviousPage 6 of 34Next →