Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mamcx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
691.
▲
by
mamcx
5y ago
>and never just a function of the language you chose. I understand your point, but is important to know how NUANCED is this. Performance is MOSTLY driven by the inherent design choices of each language(+ your own!). If you are on Gc, tha
692.
▲
by
mamcx
5y ago
Great, I was sure not the first to think like this :)
693.
▲
by
mamcx
5y ago
> If you have to go to disk, a combination of: splay tree, batching and append-only log structure are your best bet. Anyone actually use this combo (I don't know much about this) that show is good? --- If I were to build a rdbms tod
694.
▲
by
mamcx
5y ago
Sqlite is probably the one C project I totally trust. But, yeah, "cloning" projects is losing proposition (even more if open source). I wish a sqlite-like on rust? yeah, but not a clone, but in spirit (exist so much we can improve
695.
▲
by
mamcx
5y ago
> You can write perfectly safe code in C where virtually everything is unsafe in the sense of the unsafe keyword. The key here: Rust SURFACE AS TYPES this information. Is similar to this piece of code (imagine is python): sum(a,b)
696.
▲
by
mamcx
5y ago
I was arguing against the idea of "string are implemented differently by different languages, so WHICH one choose?". A safe one. Your sample is that - except I think is better if is a utf-8 string, but this one works for me too-.
697.
▲
by
mamcx
5y ago
Another possibilities: - We in fact heard it a lot. "X is down" "X is Affected" ("when a person is victim of extortion is called extortion, but if a nation, is called terrorism? global politics?") - The owners
698.
▲
by
mamcx
5y ago
Any complex structure past int/floats requiere conversion. Heck, even floats and ints (for example: oCalm and anybody with more/less bits than JS). So, given this is a fact, the best course of action is chosen the most safe altern
699.
▲
by
mamcx
5y ago
>What type of strings though? The good one! UTf-8, NOT null terminated, pascal like. ie: what rust have: https://doc.rust-lang.org/std/string/struct.String.html REPEAT the mistakes of C (and considering the sec
700.
▲
by
mamcx
5y ago
In the nigth my mind go a full speed too. I learn to have the same "dream" that I repeat (with dialogue an all that!) then help to make the characters mumble and say things without clarity. Some times it works!
701.
▲
by
mamcx
5y ago
> We do deserve better. Totally! SQL is like shell, c and js that somehow generate this "never ever try to improve them for real, lets stay suffering for all eternity!" And the AMOUNT of energy in mask them (transpilers, linter
702.
▲
by
mamcx
5y ago
Yeah, I use azure so I can get build support for linux, windows, osx. I wish I could simplify all that, but with windows I need call native C++ toolchain (using rust).
703.
▲
by
mamcx
5y ago
Also: A good visualization(light!) of structured logging. I move to it and suddenly get harder to inspect my logs because all this stuff presume I will deploy a heavy ELK stack or something.
704.
▲
by
mamcx
5y ago
Rust have the same issue (for other reason) and the solution here is using arenas. Maybe adding an arena in the std library is enough to placate the need for end-users?
705.
▲
by
mamcx
5y ago
People want a table, like in rdbms. Hashmap is what them get. The properties of it (only useful as a direct index) is too narrow for the kind of use that in Langs like python has, where a dictionary is used everywhere (like a vector). How s
706.
▲
by
mamcx
5y ago
If you wanna a taste of how this look like? Pair tailwinds + htmx. I do this and suddenly I cut a TON of issues, performance problems and make all the logic on Rust. Now I also contemplating doing similar for my mobile targets. Is using web
707.
▲
by
mamcx
5y ago
> 9 times out of 10 you probably want an RDBMS. And the last 1 can be done (modeled) in a RDBMS when the scale/pressure/volume is low. In other words, wait until you feel the heat.
708.
▲
by
mamcx
5y ago
What I wish to know is how apply this in a normal CRUD-like scenario against a db. It truly will help for, like, a shopping cart app?
709.
▲
by
mamcx
5y ago
Better than marketing? Sales. Much more at small things. I have a partnership with a friend, it take care of sale stuff. The deal is simply: I get X and he can sell more than it as he please. A good salesman will instantly see how much ni
710.
▲
by
mamcx
5y ago
> And this was the original plan — the “other language” was ... In short? mis-designed. JS was fora use case, and have become more and more for other uses case (even backend!). This is also the problem with html, css, dom. Plus, some WA
711.
▲
by
mamcx
5y ago
This nicely show why Rust/WASM speed up things. All that detective work? Is UNDOING what javascript do, idiomatically! Can be argued that JS is "fast" after all that, but instead, that show Rust give it for free, because is i
712.
▲
by
mamcx
5y ago
Agreed. The most important take, IMHO, is that you have structured/disciplined way to do things, and do it everywhere. It could lead to a lot of code (the part about all that validations upfront), but having a distinct and regular styl
713.
▲
by
mamcx
5y ago
Yeah, is very good the write-ups. I remember this from https://scattered-thoughts.net/writing/a-practical-relationa... . Working with the relational model for my lang ( https://tablam.org ) I also found very c
714.
▲
by
mamcx
5y ago
To be pedantic, is not a contradiction. Is a sign of problem with the design? Probably! Most likely! But the relational model CAN'T say it. The normal forms are properties of the way you can do the design, but can't go that Deep.
715.
▲
by
mamcx
5y ago
Yes, that is even a more narrowing detail. (people that use a "time-series" rarely need that high of granularity!) But the question was about wondering "why exist the support for PK that are not integers/guis, like dat
716.
▲
by
mamcx
5y ago
> when in every schema I have ever designed or seen, all rows get unique integer IDs anyway. This is artifact of 4 things: - Indexed Integer search are fast in RDBMS - Having an non-bussines related value for identify a row could save yo
717.
▲
by
mamcx
5y ago
No, is not a contradiction. Is like say "Is wrong to store a large json in a cell in an array, that make it not an array". A relation is A VALUE. That is. The atomicity of the data INSIDE each "cell" is orthogonal to the
718.
▲
by
mamcx
5y ago
> the concepts are very esoteric for a normal enterprise Java/C#/JS/Python developer I on this space and found Rust to be a great boost in my ability to ship code with FAR lower debugging (post-deployment) and hosting cost
719.
▲
by
mamcx
5y ago
ASIDE: Any suggestion for ways to generate programatically with Rust? https://www.reddit.com/r/rust/comments/nvxh12/for_building_a...
720.
▲
by
mamcx
5y ago
In other words: You can't add many workers to a linear job and expect the task is done in SizeOfJob/Workers. Or: If you put many car lanes that go into one, you will get contention. This will manifest in many ways. But you "c
More ›