Python structural pattern matching morphs again
Python structural pattern matching morphs again
Posted Dec 7, 2020 17:51 UTC (Mon) by dbaker (guest, #89236)In reply to: Python structural pattern matching morphs again by Deleted user 129183
Parent article: Python structural pattern matching morphs again
I actually was trying to be a little snarky, I tend to think that Rust and Zig have some nice features, but also some really bad ones :)
Posted Dec 10, 2020 12:26 UTC (Thu)
by HelloWorld (guest, #56129)
[Link] (5 responses)
Posted Dec 22, 2020 10:08 UTC (Tue)
by intgr (subscriber, #39733)
[Link] (4 responses)
Suggesting Rust, on the other hand, requires learning a new paradigm that affects pretty much every line of code. As good as that paradigm may be, it's a hard sell if the old paradigm works "well enough".
Posted Dec 22, 2020 17:16 UTC (Tue)
by mathstuf (subscriber, #69389)
[Link] (2 responses)
This system has been running for over 4 years now, gained support for non-`master` default branches in July, updated its GraphQL schema usage in June, added a couple of small features this past spring, a few trickling in over time (as they do), and hasn't really had an "oh shit" moment in over a year (I've stopped scrolling the history; there have been 2 that I can remember that weren't "gitlab or github changed something on us" (those are just error logs, not crashes) and they were logic errors possible in any language). It's also performant enough that we just deploy the debug build so the backtraces are useful (when needed).
If you're crafting your own data structures, yes, Rust is going to be a tough sell over more convenient languages (though I argue that it is still worth it). But if you're writing code that needs to be correct in production, performance is of at least some note, and where threading can really help out there, Rust is definitely the top of my list for what to implement it in.
Posted Dec 22, 2020 17:27 UTC (Tue)
by mpr22 (subscriber, #60784)
[Link] (1 responses)
This is really cool, and I can't think of much higher praise for a language's performance :)
Posted Dec 22, 2020 21:43 UTC (Tue)
by mathstuf (subscriber, #69389)
[Link]
I've talked about the project before on here, but it all lives here for anyone curious:
https://gitlab.kitware.com/utils
All of the "rust" and "ghostflow" repositories; the "source-formatters" repo is relevant in that it's something we point our configurations at to do formatting verification and fixing. "git-import-third-party" is relevant for anyone wanting to use the "third party" check to make sure vendored code is not modified outside of dedicated patch tracking mechanisms.
Posted Dec 26, 2020 19:55 UTC (Sat)
by jezuch (subscriber, #52988)
[Link]
To be fair, this is inferred most of the time (just like types and some other things); it's only needed (AFAICT, possibly wrongly) when you return a reference from a function which might also be one of the arguments. At least this was the moment it "clicked" for me and I learned to stop wondering WTH I need those annotations for and love lifetimes.
And besides, I think that many experienced programmers already know this "paradigm" without knowing it, so to speak.
Python structural pattern matching morphs again
Python structural pattern matching morphs again
Python structural pattern matching morphs again
Python structural pattern matching morphs again
Python structural pattern matching morphs again
Python structural pattern matching morphs again