Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nu11ptr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
571.
▲
by
nu11ptr
5y ago
Except KISS is subjective, as are most things. Please don't take this the wrong way, but anyone who touts any one, true "religion" in sw development I have learned to take with 6 grains of salt. There is no one magic way or s
572.
▲
by
nu11ptr
5y ago
To be clear, I have no issue with anyone who prefers Go. I was speaking about the core devs in particular. I would agree that the users of the language definitely go back and forth "trading blows".
573.
▲
by
nu11ptr
5y ago
> Unlike most other package managers files, Go modules don’t have a separate list of constraints and a lock file pinning specific versions. The weird thing about the Go devs is there is always that little bit of elitism under the surface
574.
▲
by
nu11ptr
5y ago
Couldn't disagree more (I spent years writing Go, and now Rust - will NEVER go back)
575.
▲
by
nu11ptr
5y ago
One problem: unless you have an endless amount of time, money, patience, and...did I mention patience? that just isn't a viable approach for anything but the smallest of hobby projects
576.
▲
by
nu11ptr
5y ago
Fair point - so far I've been lucky enough to avoid such use cases
577.
▲
by
nu11ptr
5y ago
Weak pointers don't create a strong reference, correct, and that is exactly what is needed to break a cycle. Since it is a cycle, there is some other "owning" strong reference out there. Every use case I've seen generall
578.
▲
by
nu11ptr
5y ago
enum dispatch in Rust is one of my favorite tricks. Most of the time you have a limited number of implementations, and enum dispatch is often more performant and even less limiting (than say trait objects)
579.
▲
by
nu11ptr
5y ago
`Rc` and `Arc` have weak references which have worked just fine for me to break cycles in a graph. Not saying my use case is the most complex, but I haven't noticed this as a problem yet. YMMV
580.
▲
by
nu11ptr
5y ago
It wrapped Qt last I checked (a few months back)
581.
▲
by
nu11ptr
5y ago
Last I checked they used Qt underneath. Not quite sure what their definition of 'native' is, but I was disappointed as well for that reason.
582.
▲
by
nu11ptr
5y ago
This is an interesting observation, but this also means people will often be expected to call those APIs directly as not everything will warrant a C++ wrapper. In other languages, with their (typically) noisy FFIs, almost no app. programmer
583.
▲
by
nu11ptr
5y ago
I created this because I found myself cloning String all the time while working on a large project. Essentially, I had several HashMaps and no simple way to borrow the String for the lifetime I needed so ended up with several clones. It see
584.
▲
Show HN: FlexStr – An immutable, clone-efficient String replacement for Rust
(github.com)
1 points
by
nu11ptr
5y ago
|
1 comments
585.
▲
by
nu11ptr
5y ago
Can someone please forward this to my IT security team? :-)
586.
▲
by
nu11ptr
5y ago
Mid-terms are getting close and people are sick of COVID. Either that, or science changes as you cross the border between red and blue states. Nobody wants to admit it, but company policies directly reflect the chosen party of it's lea
587.
▲
by
nu11ptr
5y ago
"I think that an environment where someone can tap me on the shoulder when they need help leads to overall higher productivity, even if individual productivity suffers temporarily" Disagree, I think this leads to poor productivity
588.
▲
by
nu11ptr
5y ago
Ahh...very cool, thx. Didn't realize it was that capable and was not aware of this "demo". I will check it out as I need to write a GUI soon (and would prefer to use Rust).
589.
▲
by
nu11ptr
5y ago
This a good point, and I agree that C++ made sense at the time as it is much richer for creating a GUI. I've never tried to use GTK C GObject interface, but I've seen some snippets and it looked nasty to me. However, in hindsight,
590.
▲
by
nu11ptr
5y ago
I'm aware and have used SWIG. It is amazing, but a) it doesn't support all languages b) it still takes a lot of work to create C++ bindings. This is primarily due to the complexity of C++ APIs vs. relative simplicity of a C-based
591.
▲
by
nu11ptr
5y ago
Assuming you are talking about Qt/wxWidgets, and I don't think they are easy to create bindings for due to being written in C++. I think they have been used because they represent the largest, most complete crossplatform codebases
592.
▲
by
nu11ptr
5y ago
AFAIK, the only complete desktop GUI option for Rust that is viable for large, professional apps is gtk-rs. There are many promising up and coming GUIs for hobby projects, but none I've seen are robust enough (yet) to support all neede
593.
▲
by
nu11ptr
5y ago
Is wxC maintained? I didn't think it was. I always thought a more interesting approach would be like the one wxPython uses. They effectively walk the object tree generated by Doxygen docs and do code generation from it. Not sure how vi
594.
▲
by
nu11ptr
5y ago
I only skimmed, but the reason listed for using the nightly compiler (inline asm) just went away - inline asm was stabilized in 1.59 yesterday. However, there might be other reasons nightly is used, but I just saw this at a glance and thoug
595.
▲
by
nu11ptr
5y ago
I highly recommend this book. I like "the book", but I did not find it was enough to write code in the real world. This book is longer, but more thorough.
596.
▲
by
nu11ptr
5y ago
Ha - not quite _that_ full body for me. I just wear a pair of shorts. I just meant that I'm not just exposing my arms and legs but also my chest/back/etc.
597.
▲
by
nu11ptr
5y ago
I am a "sun convert". I used to avoid it like the plague because I burn so easily. However, I started reading the dangers of low vitamin D and some of the positive effects of the sun (mood, circadian rhythm, etc). I am convinced n
598.
▲
by
nu11ptr
5y ago
The study says they were given treatment "within 7 days" of onset. The proponents of IVM have always said "early treatment" was required for it to work. Serious question: Does "within 7 days" meet the definitio
599.
▲
by
nu11ptr
5y ago
Interesting, thx for the response. Pony is on my list of languages to do a deeper dive on at some point in the future. It has some interesting ideas I thought when I last glanced at it.
600.
▲
by
nu11ptr
5y ago
Cyclone I believe (has been a while) used region based inference like MLKit I mentioned. I'm not sure off hand if Cyclone was influenced by MLKit or the other way around. Cool tech, but Rust took it to the next level by making it pure
More ›