Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xxs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
391.
▲
by
xxs
2y ago
yes, they are useful... as marketing materials. Other than that, not at all.
392.
▲
by
xxs
2y ago
Pretty much. There are lots of post in that form, it makes for a good self tapping on the back and few blog posts - without any questions answered. OTOH - if that's what makes run the business, I'd not argue.
393.
▲
by
xxs
2y ago
> Spring devs say that some (a lot?) of the runtime reflection It's a lot more than reflection, if it'd have been reflection alone - it'd be markedly better. (and yes, lots and lots can be optimized). Spring effectively:
394.
▲
by
xxs
2y ago
Spring by far - Spring is effectively a build tool running at run time (scanning, enhance, code generation, etc.) - most of it is just startup as JVM does a decent job at optimizing the cruft. In most cases the boot times don't matter,
395.
▲
by
xxs
2y ago
The story I know is that US gas (used to) cause corrosion of the Cu pipes. I don't have a gas line (in the house), so no recent installation - and of course I won't be installing a gas line on my silly-own (while I can go by and
396.
▲
by
xxs
2y ago
copper pipes are not popular in this part of the pond (not any longer at least, outside gas). The most common domestic pipes are "pex/aluminum/pex" type which are designed for crimping and bending (by hand). Other than t
397.
▲
by
xxs
2y ago
Why absurd, I did move a washer from an apartment to a house - few hundred kilometers away, along with some other furniture. I liked how it worked, and I could connect it. In that regard, home equipment and tools maintenance from LED lights
398.
▲
by
xxs
2y ago
Dewalt is prosumer (i.e. on the high end). The not taking part is likely 10mm chuck, even though the twist drill for hole saw tend to be 8mm. One the pictures has a 10mm plastic chuck. Lots of hole saw have even 6.3mm (the 1/4) hex dri
399.
▲
by
xxs
2y ago
(ms)dos has just a file system (it's the D in the name). It has no protected memory or scheduling, or any ability to "talk" between processes. It can load executable images .exe(MZ) or sub 64KB .com. ANd yes, it's possib
400.
▲
by
xxs
2y ago
Aside the step down, the transients can be quite crazy, which might make the power consumption higher (due to load line) calibration. 48V fets would have much worse RDSon compared to lower voltage spec'd ones. So it does make sense no
401.
▲
by
xxs
2y ago
>that it creates long runs of collisions Yes, of course. In practice it still outperforms pretty much anything else. The lower fill factor is still cheaper (memory footprint) than having buckets and indirection.
402.
▲
by
xxs
2y ago
They are not transformers, though. The coil/chokes are not galvanically isolated which makes them (more) efficient. Stepping down from 48V to 0.8V (with massive transient spikes) is generally way harder than doing it from 12V. So they
403.
▲
by
xxs
2y ago
The 8awg would need a massive connector, else it will still melt/desolder.
404.
▲
by
xxs
2y ago
>If all of the latencies to the main memory and L1/L2/L3 caches have been only increasing throughout the years That's actually not the case at all both L1/L2 (to a lesser extent L3) have been improved dramatically in
405.
▲
by
xxs
2y ago
Yet, memory access can be limited by latency and bandwidth. Predictable access patterns (e.g. linear scan) tend to enjoy prefetech reduces the latency of accessing random parts.
406.
▲
by
xxs
2y ago
Bucket can evolve to red/black tree, if there are too many entries given O(logK) (collisions) for lookups. Still bucket based ones tend to be outclasses (both latency and memory footprint) by the dumbest linear probe.
407.
▲
by
xxs
2y ago
>The simplest (but not optimal) way to do this is to just take the next one that isn't used yet. The linear probe is by far the most efficient way to build a hashtable on any modern hardware, nothing is near close. Everything else l
408.
▲
by
xxs
2y ago
In reality 75% is the standard fill factor for linear probe that also exhibits the best locality (if the table gets too full it just allocated double (or x) the memory, and copies the existing entries). Most non-linear probe tables (e.g. c
409.
▲
by
xxs
2y ago
AC-DC are effectively -> AC + power correction boost to even higher AC, then high voltage DC, the AC (high freq), then transformer, then low volt DC + feedback to the primary DC ; {then DC->DC (potentially)} DC (high) voltage to DC w
410.
▲
by
xxs
2y ago
>Would it be a higher frequency (1000hz)? Totally not, that would mean both worse skin effect and worse impedance. Likely the best option (if you really don't care about the existing infrastructure) would be DC, 0Hz. There are some
411.
▲
by
xxs
2y ago
I was also surprised to read that heat is proportional to the current. In addition, increasing the temperature also increases the resistance in the conductor (Cu). It's around 0.4% per 1C for Cu, around 20% more heat at 70C. Not sure a
412.
▲
by
xxs
2y ago
>and to reduce warmup time to peak JIT performance. This actually works in the opposite way - JIT is a guided compilation which uses the input for best results. There are many optimizations done for multi call sites, e.g. static linking
413.
▲
by
xxs
2y ago
While not a fan of the cloud - in case of java; package it in docker or whatever deployables along with the JRE (or even JDK) and call it a day. Compile to native makes sense only for very fast startup cases. As for wasted resources - there
414.
▲
by
xxs
2y ago
using copy on write would be easier (and more performant), along with getenv_r. POSIX requires not to copy the data which makes the entire mutex/lock or CoW pointless. Of course, there will be the mandatory mentioning of "extern c
415.
▲
by
xxs
2y ago
uncontended mutexes are very cheap but not free. lock cmpxchg has way higher latency (and coherency traffic) costs than a simple move or (xchg). Java had lock elision, effectively trying to solve the hardware problem in software back in mid
416.
▲
by
xxs
2y ago
>and environment variables require an operating system. Yes to read them, if Rust wish to modify - modify your own, already copied structure. I'd do that in pretty much any language.
417.
▲
by
xxs
2y ago
if you really wish - you can change the bootstrap path and allow changing env() for whatever reason you want to (likely via copy on write). If you don't wish to do that feel free to spawn a child process with whatever env you desire, t
418.
▲
by
xxs
2y ago
B/c you never need setenv outside a single threaded command line utilities, and even then it's questionable.
419.
▲
by
xxs
2y ago
They can have copy on write of course.
420.
▲
by
xxs
2y ago
That would be so much wasted engineering effort. The actual solution is simple: read what you need from env, and pass it as parameters to the functions you want to. The values of what you have read can be changed... and if you really, real
More ›