Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mamcx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
661.
▲
by
mamcx
5y ago
Well, work with several task is THE thing with Go, right? If it were too much worse Go will fail. In situations like this, is important to remember that Rust/Zig are (system)languages to MAKE "Go" but also, million other diff
662.
▲
by
mamcx
5y ago
You can pack binaries yourself, but can't use PG as a library like with Sqlite or Firebird.
663.
▲
by
mamcx
5y ago
Well I wish I could embed it as sqlite, but that is like me dreaming too big!
664.
▲
by
mamcx
5y ago
Well, nearly nobody have experience with a REAL good shell. Is like using C all your life and don't have experience what a truly good language is. I work in FoxPro DOS back in the days. That is another dimension. Was close to jupyter +
665.
▲
by
mamcx
5y ago
This sound nice and simple. I moving to arenas but is a extra complexity. Can you show how is done? (ie:code!)
666.
▲
by
mamcx
5y ago
I see it more like an aspirational goal . But one where everyone understand that is at most about start new projects that wholesome replace them (or "replace" is for create alternatives, not for truly rewrite the old ones). And I
667.
▲
by
mamcx
5y ago
> Then again, I'm not sure exactly what a type would be for Unicode. I have this internally in my lang AST Rust Utf8 I think that is the type: struct City { name:Utf8 } For a scripting lang like mine I
668.
▲
by
mamcx
5y ago
I get stuck in a weird bug on certain Customer machine that suddenly start failing, so I replace the http client library to one that use rustls and gone. A few hours of work and also the CI benefit! P.D: Other software also fail the same, b
669.
▲
by
mamcx
5y ago
With io::error and is set!
670.
▲
by
mamcx
5y ago
Ok, so how you do it or what can be used as counter-example?
671.
▲
by
mamcx
5y ago
Yeah, the other side of the coin is idioms (like things that people understand as "pythonic" or idiomatic). Certain idioms not make much sense at first , but a big part of be on Rust is learn them. Eventually, most of it make sen
672.
▲
by
mamcx
5y ago
> Your example is also less about Rust and more about type signatures. No, is HOW Rust use type signatures. Rust is in the camp of "advanced usage", not like C#, Python and others, where a "type" is barely for classif
673.
▲
by
mamcx
5y ago
The kind most ones focus? (multi-node, cloud-scalable) are fairly niche. I live in the enterprise sector where you can get many rdbms living alonside (+ cloud) and I know for a fact "scalability" is close to zero in the list of ac
674.
▲
by
mamcx
5y ago
I just wanna say why is this in Rust: Rust is a system language . For example, one shock is that you can't print! or dbg! anything (without adding Debug/Display to each type). The reasons? Where it will print in a Airpod? yeah: R
675.
▲
by
mamcx
5y ago
The syntax is ugly and can become overcrowded, but is in the HIGH side of readable. Compare: def read(path): What is path? Unknow. What it read? Unknow. What it return? Unknow pub fn read<P: AsRef<Path>>(path: P)
676.
▲
by
mamcx
5y ago
Too much focus in the "scalability" that only matter for a very narrow niche and lateral to the DB engine, so I instead focus in real progress/improvements for RDBMS (one of my dreams is doing this): - Algebraic data types, r
677.
▲
by
mamcx
5y ago
> (hiring managers expect million-dollar candidates to accept $100-200k compensation). Wait, not even that. Even if you are senior you can get that job (because, for example, you are from another country and suddenly you are "cheap&
678.
▲
by
mamcx
5y ago
Other tips: - Change the field type from JSON to JSONB (better storage and the rest) https://www.postgresql.org/docs/13/datatype-json.html -Learn the json in-build functions and see if one of them can replace one
679.
▲
by
mamcx
5y ago
Firebird is also close. With the extra capabilities that can run as server (and that is only a setup concern: the code stay same). Also, it support more stuff (like stored procedures!) that I miss a lot on sqlite. My only complain with fire
680.
▲
by
mamcx
5y ago
But is like with json: We are not debating about that details because is a bit more well defined. For a improved CSV, that minutae must be defined from the start, but also must take in account how is CSV used, and keep it spirit. P.D: A exa
681.
▲
by
mamcx
5y ago
Nope, Straightforward Way is like this: name:String, date:Date, value:Int "Miami", 2021-08-19 11:54:19.721376-05, 2 And making header mandatory. I think forcing quoting of strings and forcing "," for separat
682.
▲
by
mamcx
5y ago
Is possible we are talking about different stuff. Back in the day we don't wikipedia (and I learn programming before I have Internet, around 1998 so the idea was more developed?) so this is how I understand the idea as teached to me an
683.
▲
by
mamcx
5y ago
"structured programming" is not the use of flow-control but a way to design programs. Even if most language have structured flow-control, a lot of people NOT do structured programming. This is how I remember it back in the day and
684.
▲
by
mamcx
5y ago
Also "High coupling between components" is, a lot of times, GOOD. The more everything in the pipeline know about each other, the easiest is to code it and the FASTEST will be. You can say any performance gains is possible when you
685.
▲
by
mamcx
5y ago
I use F# before Rust, and find it much more approachable than Haskell. Somehow Haskell look pretty interesting (when I read long ago http://learnyouahaskell.com yet unable to figure how use it, when with F# was almost immediate.
686.
▲
by
mamcx
5y ago
Yeah, I imagine something like that so I could work on my lang/db engine ( https://tablam.org ). But then, I wake up!. So moving a bit here and there and hope to find a small numbers of non-millonaires... hard, but possible?
687.
▲
by
mamcx
5y ago
> A good rewrite is just a good refactoring but with a higher chance of success >Are you saying it's not a restart from scratch? In that case I don't call that a rewrite. Maybe a "rewrite of this or that module" wh
688.
▲
by
mamcx
5y ago
Most have been mainly me. I normally was hired and get stuck doing this kind of stuff until the other team was supporting the old project. Along the way was the one that push source control, tickets system, crude CI to the larger team... Ma
689.
▲
by
mamcx
5y ago
I work in this space, and agree with "average commercial software is atrociously terrible and grossly inadequate" not just in security but any metric you can think off. However, this is the thing: A lot of security is related to i
690.
▲
by
mamcx
5y ago
> How many examples of successful rewrites of large systems can you come up with? Considering the size of the software industry... a LOT. I have done a DOZEN of rewrites from langs to langs and each (bar one) have been successfully. But
More ›