Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
KMag
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
66 ms
·
721.
▲
by
KMag
4y ago
I had been in the habit of symlinking ~/.bash_history to /dev/null to avoid AFS/NFS writes on every local command execution. When I moved over to the financial industry, it didn't occur to me that such a symlink mi
722.
▲
by
KMag
4y ago
You're better off having an operator in your language that explicitly chains together methods returning Result<T,E>s. That way, you can easily get this behavior if that's what you want, but it's clear from reading the
723.
▲
by
KMag
4y ago
I think the GP is probably thinking about Java's Option<T>, which adds an extra layer of indirection and is in some ways the worst of both worlds. In Java, the Option<T> could be null, or it could wrap null. The clue here
724.
▲
by
KMag
4y ago
He said that he knew it was a kludge at the time, but it was seductively easy to implement... just add a special case to the type checker so that if the type being assigned to a reference is wrong, allow it if it's null. Properly work
725.
▲
by
KMag
4y ago
I think the GP is implying an "even if" between their two lines of argument. On a side note, given enough time, they presumably could reverse-engineer plenty of bomb design secrets even if the permissive action links couldn't
726.
▲
by
KMag
4y ago
20 years ago, I was a lurker on the JikesRVM (IBM's research project building a JVM in Java) mailing list. JikesRVM is still around, but not terribly active last I checked. Oracle is quite late to the game, and I'm just generall
727.
▲
by
KMag
4y ago
Plot twist: they weren't hacked. They were just programmed in APL and crashed with a source code printout of the offending line.
728.
▲
by
KMag
4y ago
The California Condor is the key to ending the 2073 pandemic. Their extinction due to wind farms in 2065 is about to lead to extinction of the human race. They discover a time travel mechanism that only works for energy, not matter. They
729.
▲
by
KMag
4y ago
I'm not sure about when the Vestas happened, but Russia likely took more than a year to plan an invasion of this size. After some sanctions following the 2014 Crimea invasion, Russia built up its foreign currency reserves to ride out
730.
▲
by
KMag
4y ago
Reference counts don't need to be a full size_t. Particularly when you're using a mark-sweep or mark-sweep-compact collector to collect reference cycles, you can use a saturating counter, and just give up on reference counting th
731.
▲
by
KMag
4y ago
I briefly scanned the Lobster reference, but I didn't see how they're dealing with the undecidable cases. Presumably it punts out to the garbage collector for objects where lifetime isn't statically decidable, right? My und
732.
▲
by
KMag
4y ago
> I'm not sure why anyone would seriously propose it. Likely, cache line contention just probably never crosses their minds. I don't blame them. I'm largely self-taught. My degree is in mechanical engineering, and I did
733.
▲
by
KMag
4y ago
> In that scenario, you wouldn’t want the GC to run on that core, for sure. In that scenario, you wouldn't want the GC to run at all. If it runs on another core but touches the GC header words on objects used by the application cod
734.
▲
by
KMag
4y ago
>> wouldn’t want the GC to run on that core > We currently don't have an option for that other than going native. You mean going manual memory management, I believe. Technically, JIT vs. ahead-of-time native vs. interpreted i
735.
▲
by
KMag
4y ago
As the GC running on its own core sets mark bits in a mark-sweep or mark-sweep-compact collector, it's going to get exclusive cache line access to the line holding the GC word for every live object. That's going to force more tra
736.
▲
by
KMag
4y ago
I've been told that it's likely that most people who could read still read out loud in the not-so-distant past. For instance, I've heard it said that the Apostle Paul knew what the Ethopian eunuch was reading in his chariot
737.
▲
by
KMag
4y ago
It would be very high overhead if different brain regions used an encoded form of spoken language as the communication protocol. For most of us, most of the time, the introspective portions of the brain responsible for consciousness may be
738.
▲
by
KMag
4y ago
Minor nit: the description above is true for copying GCs, but non-copying mark-sweep collectors generally still touch the header words of both live and dead objects in the heap in order to add dead objects to free lists. Mark-sweep-compact
739.
▲
by
KMag
4y ago
Excellent answer. I would just add a brief summary, that naive reference counting does work proportional to the rate at which references are created and destroyed, and naive tracing collectors do work proportional to either the full heap s
740.
▲
by
KMag
4y ago
It's been a little while, but as I remember, the Garbage Collection Handbook (an excellent read if you're into this sort of thing) outlines and cites some external work showing tracing garbage collection as a lazily evaluated form
741.
▲
by
KMag
4y ago
I definitely have an issue where composing English sentences takes a little bit of working memory, and if I'm concentrating on a task that can't spare that one or two items of working memory, and someone insists on talking to me,
742.
▲
by
KMag
5y ago
"Free to use", but presumably comes with a user agreement that opens you to some financial liability. There's a (granted small) chance that a bug, security incident, or fraud lands you in a Kafkaesque debt nightmare. I had a
743.
▲
by
KMag
5y ago
At least about 15 years ago, we really had no idea the long-term effects of donating blood as often as the Red Cross allows over multi-year periods. I'm negative for cytomegalovirus, which makes my blood suitable for newborns, cancer p
744.
▲
by
KMag
5y ago
... or run each donated pint through one randomly chosen extra screening. Donate often enough, and you get a full screening.
745.
▲
by
KMag
5y ago
Honestly, many more language runtimes should perform a lazy version of interning: have String.equals(String) (or its equivalent in your language), when it determines that two Strings are equal, fix up the String internal representations to
746.
▲
by
KMag
5y ago
Given what the Russian military did to Grozny in the Second Chechen War and what they did to Aleppo during the recent Syrian civil war, it's hard to dismiss the reports of intentional depopulation of cities as an intentional Russian mi
747.
▲
by
KMag
5y ago
Obviously this news is a bit embarrassing for both the UAE and the UK, but if the UK's response isn't to press the UAE for a reciprocal no-hacking treaty, then presumably the UK is trying to keep its options open. Unless I'm
748.
▲
by
KMag
5y ago
I'm assuming "an" is a misspelling of "and". If they're using lots of bandwidth, that's one thing, but I sometimes see 480p YouTube videos laggy and wonder what's going on. Maybe I'm in the min
749.
▲
by
KMag
5y ago
It would be interesting to see this challenged for the case where interstate commerce isn't involved. I know the federal government has regularly asserted jurisdiction under the premise that drugs that don't cross state lines sti
750.
▲
by
KMag
5y ago
That's great! The processor's hypervisor-like firmware should handle task switching, page table manipulation, etc, and the OS kernel should use upcalls to the firmware instead of needing to have various special-case paths for var
More ›