Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mamcx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
73 ms
·
901.
▲
by
mamcx
6y ago
Now the question is how use ECS for build a query/stream?
902.
▲
by
mamcx
6y ago
> It seems like one problem with rust is that it is a single threaded compiler. That could be a symptom but is not the root cause.Is just that the syntax/features choices (as choiced!) are hostile to fast performance. Even going par
903.
▲
by
mamcx
6y ago
Is made to be fast. Also, C/C++/rust is made to be slow. One recent article that touch it (for rust): https://pingcap.com/blog/rust-compilation-model-calamity
904.
▲
by
mamcx
6y ago
This is my experience too. I rewrite often and liberally, and even switch langs (on the side) to check if it can bring huge gains.
905.
▲
by
mamcx
6y ago
Why not? Programming languages are not a solved problem (or parsing, or diagnostics, or...). We are today, barely, getting practical solutions to how write safely, fast and ergonomic (for example, rust) and yet: - Compiling performance is a
906.
▲
by
mamcx
6y ago
Lurking here is the main problem, not only of python but of so many langs: Dependency on the C-ABI. EVERY interfacing with C sucks, even made on C! Hopefully web assembly become good enough to change that...
907.
▲
by
mamcx
6y ago
I'm in a similar dream, building from scratch a relational language (I wanna not only the UI of Access/excel but the power of FoxPro). The main block is funding. I could do it for life if it pay at least the bills, but how fund it
908.
▲
by
mamcx
6y ago
> I've often used floating point for currency The question is WHY? Because decimal types are barely second class citizens across the stack. Is similar with dates. Bad defaults are bad, and requiere stupid amounts of workarounds. And
909.
▲
by
mamcx
6y ago
You ask, rust give: https://doc.rust-lang.org/std/collections/struct.BTreeMap.ht... I have found to have btree/sets included very handy. Suddenly some hacks around hash maps fade away. For example, sort for p
910.
▲
by
mamcx
6y ago
> After all, they are not apples-oranges comparison And more: Them are the MOST useful comparisons. Compare 2 oranges is not as useful than compare an apple and orange. You have MORE useful differences and more insights on what make them
911.
▲
by
mamcx
6y ago
I don't like lisp, not code in lisp; not even a line.. and I have read TONS of lisp stuff. Why? The #1 reason: The lisp people have a lot of cool things to teach. One of the most obvious examples: https://www.infoq.com/
912.
▲
by
mamcx
6y ago
I doing almost the same. Spit out regular html made by templating on the server side and spice it a little with vue. Is so little that I could change vue anytime.
913.
▲
by
mamcx
6y ago
Pascal, ADA not have GC. And C/C++/Rust not have GC... and still ARE slow to compile.
914.
▲
by
mamcx
6y ago
Yes. But "we" also include the c/c++/rust developers here. This is a puzzle that is hard to crack. WHY "system language" developers near always produce the MOST slow languages on earth (C, C++, Rust, ....). And
915.
▲
by
mamcx
6y ago
Near. Exist some fancy features that are not present, but the practical side is covered...
916.
▲
by
mamcx
6y ago
The |> operator I miss, but rust have a near similar feel with iterators: let a= [1, 2]; a.iter().filter(|x|..).map(|x|...) I think I'm more functional in a lot of areas where in F# can't (or don't know how).
917.
▲
by
mamcx
6y ago
One of the interesting effects of using rust is saving money! I also migrate a F#/.NET ecommerce backend and can run in less RAM/CPU that make my bills lower.
918.
▲
by
mamcx
6y ago
> I wouldn't write a LoB application in Rust Is ironic, but in fact rust is easier to use for Lob than for low level stuff (for the obvious reason low level stuff requiere more intricate knowledge). I'm building a erp/ec
919.
▲
by
mamcx
6y ago
> In $current_company, I was surprised that none of the basics were there. All agree to do these things, but with the slightest bit of pressure those principles are gone This is the normal. I think I have never be in a project with the &
920.
▲
by
mamcx
6y ago
Refactoring/Rewrites is the MOST rewarding task that can be achieved with both legacy and new code. I do it from the start of my career (when I don't even know the name of it). And that include, regulary, rewriting to different la
921.
▲
by
mamcx
6y ago
So, have been any sufficient effort in design a new syntax of maths that could help the regular folk? If we learn new syntax(langs) all the time then push for a new syntax(math) could not be that bad of a idea...
922.
▲
by
mamcx
6y ago
> Switching to a safe language is, obviously, not an option. Forever, never, ever, ever? Switch, right now, is not a good idea, but NEVER switch is the cobol curse. And not forget: C/C++ cause BILLONS of damage and costs in this ind
923.
▲
by
mamcx
6y ago
I have programmed in something like 12 langs, and yes, the first 2 months of rust was kind of brutal to me. But a lot of it is UNLEARN. Before, I was doing mostly F# and believe back then I was a very functional developer, but now with rust
924.
▲
by
mamcx
6y ago
> you can optimize interpreter code I love to have a source where this optimizations are explained/show. I'm building mine, and the only way you found it is by luck looking at some codebases.
925.
▲
by
mamcx
6y ago
The assumption is that exist a desugaring step in the compiler/interpreted to async/await/futures.
926.
▲
by
mamcx
6y ago
I have thinking something similar but with generators: //A async candidate fun read_lines(file): for line in file: yield line } let lines = read_lines("hello.txt").await //tu
927.
▲
by
mamcx
6y ago
> Later, if you realize that each movie can have multiple directors This still require change across the codebase, where the db migration is fairly, the most simply step. But: Is similar to "static VS dynamic" where the change
928.
▲
by
mamcx
6y ago
>Relational databases are very rigid so you need to really make sure you understand your data upfront. Is NOT true: CREATE TABLE/VIEW ... ALTER TABLE ... SELECT (whatever) ... Changing a rdbms at runtime is fully su
929.
▲
by
mamcx
6y ago
I pick teensy for mine. Is null-issues and so easy to flash. Also exist a neat workflow where you design your keyb on http://www.keyboard-layout-editor.com and then import it on https://kbfirmware.com and you get you
930.
▲
by
mamcx
6y ago
How make that work? As far I see, i need to compile js ahead of time, but never see it done inside rust or python or else...
More ›