Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
masklinn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
451.
▲
by
masklinn
11mo ago
A second component is that statics require const initializers, so for most of rust’s history if you wanted a non-trivial global it was either a lot of faffing about or using third party packages (lazy_static, once_cell). Since 1.80 the vast
452.
▲
by
masklinn
11mo ago
That is correct. Kinda. Refcell can not work because Rust considers globals to be shared by multiple threads so requires thread safety. And that’s where a number of people blow a gasket.
453.
▲
by
masklinn
11mo ago
Indeed the usual error is b := append(a, …)
454.
▲
by
masklinn
11mo ago
The only culture war is between your ears, people are “hateful of American pickups” because as I already wrote multiple times and you refuse to read the overwhelming majority of their uses and users are what you claim to find distasteful. W
455.
▲
by
masklinn
11mo ago
> (some decent, some bad) bike lanes across the city center Looking at cities like London or Paris there are two thresholds which need to be reached: 1. the infrastructure needs to be consistent and safe-feeling enough that the average r
456.
▲
by
masklinn
11mo ago
> So? I gave specs for a typical 1 ton truck. So that's a small fraction of the market, and literally none of what's already landed in europe. > I grew up in a rural area of the USA where everyone owned trucks they needed an
457.
▲
by
masklinn
11mo ago
> American pickups are very practical for what they are designed for. Your 4 cylinder hatchback is not going to pull a 20,000lb trailer up a steep grade or haul enough lumber to frame in a house, or a 7,000lb bed full of gravel. An f150
458.
▲
by
masklinn
11mo ago
> They are heavily clustered around US military bases. They’re clustered around areas of idiots with means. I’m nowhere near a us military base but there’s a bunch of these where I live, including two or three owned at houses I pass by o
459.
▲
by
masklinn
11mo ago
> My experience with protobufs is that it was created to solve problems in large systems with many teams and APIs Also significant distribution such that it’s impossible to ensure every system is updated in lockstep (at least not without
460.
▲
by
masklinn
11mo ago
Or worse, for centuries mummies were ground into powder for “medicine” or pigments, during the Egyptology craze hundred of mummies were unwrapped and destroyed for the idle curiosity and entertainment of aristocrats, and tens of thousands o
461.
▲
by
masklinn
11mo ago
Even in building and electrical, just because B is better than A does not mean it’s allowed. IIRC the first wago parts (221) were UL-listed in 2017, the 221 were released in 2014, and the original push-lever splices (the 222) were released
462.
▲
by
masklinn
11mo ago
Zer k fittings, not zero (stupid autocorrect), the grease fittings.
463.
▲
by
masklinn
11mo ago
The preliminary report mentions fatigue cracks on both sides of the aft lug, and one side of the forward lug, with the other showing no trace of fatigue, only overstress. From this it seems like the aft lug was way fucked, and the forward l
464.
▲
by
masklinn
11mo ago
According to various comments the plane was nowhere near the cycling for a special detailed inspection of the aft pylon mount lugs: SDI is at 29200 cycles and the plane had 21043. There was a lubrication task in October, but according to t
465.
▲
by
masklinn
11mo ago
The current Republican Party is the exact same as 10 years ago, just further along. 10 years ago was basically Trump 1. And 10 years before that was GWB starting the endless wars with an admin outright denying reality. Which Reagan also did
466.
▲
by
masklinn
11mo ago
They were ready long before 3.6, sqlalchemy added support for Python 3.1 in 0.6, and Django 1.5 introduced support for Python 3.2 on an experimental basis with 1.6 removing the “experimental” bit.
467.
▲
by
masklinn
11mo ago
I’m not talking as a user, I’m talking as a person who ported 350kLOCs of python from 2 to 3. Django absolutely would have been ported: it was ported without six by Vinay Sajip (building on an earlier work of Martin von Löwis). In fact a
468.
▲
by
masklinn
11mo ago
Sure but importantly they did realise they had erred and course-corrected. > if it weren't for some dumb decisions like that one there would have been almost no upgrade discontinuity at all Having been there and done that, nah, the
469.
▲
by
masklinn
11mo ago
Six was one component but not the only one. Python 2.7 also backported a number of early Python 3 features, Python 2 features were reintroduced in basically every P3 version until at least 3.5 (although after 3.3 they were pretty minor), an
470.
▲
by
masklinn
11mo ago
> the movement not nearly as difficult as people claimed. Original was really rough because the core team had gone in the wrong direction on migration, and the Python io module was hell as well. By 3.3-3.4 it was relatively smooth sailin
471.
▲
by
masklinn
11mo ago
> Same for rural parts of North America, and you also have to worry about animals on the road. You very much have to worry about that in europe as well in the conditions GP talks about (source: hit a deer in the dark not two weeks back).
472.
▲
by
masklinn
11mo ago
Much like yccs27 above, I do that using single and double quoted strings (a habit I got from Erlang).
473.
▲
by
masklinn
11mo ago
> Does anyone else do something similar? I do exactly the same thing. Did you also derive it from Erlang?
474.
▲
by
masklinn
11mo ago
> Almost the entire value of symbols separate from strings is at the level of programmer communication rather than PL semantics. That's the opposite of reality. Symbols are necessitated by PL semantics, which is why languages which
475.
▲
by
masklinn
11mo ago
> This is silly. Oh my bad, great counterpoint. > The semantics are entirely different! They're not. A symbol is an arbitrary identifier, which can be used to point to system elements (e.g. classes, methods, etc...). These are al
476.
▲
by
masklinn
11mo ago
> That’s really not true for Lisp. It's completely true of lisp. Lisp strings are generally mutable (although literal strings may be interned and non-mutable, or even worse mutation of literal strings may be UB). Same for Smalltalk.
477.
▲
by
masklinn
11mo ago
> It is two different storage mechanisms An irrelevant implementation detail. Interned strings are also stored globally, and depending on implementations interned strings may or may not be subject to memory reclaiming. > Ruby does not
478.
▲
by
masklinn
11mo ago
No. It’s not a property of the type so you can have multiple items under a mutex and you’re not at the mercy of whoever wrote it, it works fine with POD types, it does not force a lock / unlock on each method call (instead the compiler
479.
▲
by
masklinn
11mo ago
OP is really tying themselves into knots. Symbols are special cased pseudo-strings for langages which have either extremely inefficient strings (erlang) or mutable ones (ruby). That’s about the extent of it. Python or Java don’t really have
480.
▲
by
masklinn
11mo ago
> About half the size of a typical PWR reactor. Closer to a third for recent models (the French P4 reactors from the 80s were 1300, the later N4 1450~1500, the EPR is 1650). 500-ish is a relatively typical density for reactors from the m
More ›