Better HN
topnewbestaskshowjobs
Log inSign up

oshepherd

58 karma · joined Jan 4, 2014 (12y ago) · 18 submissions

Submissions

comment 8y ago · link · parent

The use of christian symbology in evangelion is both meaningless and deep.

like, the use of christian symbology is arbitrary and it poses basically no meaning to the plot, merely being used for texture; but someone with sufficient knowledge of it can use it to predict some short term plot points.

comment 9y ago · link · parent

POSIX has deprecated pthread_atfork because it is unworkable. In particular, atfork handlers can only call AS-safe functions, which means they're useless.

comment 9y ago · link · parent

The idea of only getting 10 days PTO a year continues to be incredible to me.

comment 9y ago · link · parent

It's the same just with redundant representations (the 2-bit repr is the count of ones in the 3-bit repr)

  '00' -> '000'
  '01' -> '001', '010', '100'
  '10' -> '011', '101', '110'
  '11' -> '111'
this kind of transformation is truly bread & butter in hardware; we regularly numbers between binary counts, mask/number-of-set-bits and one-hot representations for optimisation purposes.

comment 9y ago · link · parent

> Not all GPUs have the Z-Buffer fillrate to make that approach viable(esp on mobile). I've seen more than a few cases where it was actually faster to turn off Z-Buffering and do the overdraw. More than a few architectures share Z-Buffer bandwidth with other pipelines.

Uh, mobile GPUs tend to be way, way ahead of desktop GPUs in Z-Buffer bandwidth (especially in relative terms)

and you can't increase your tile count; there's a fixed number of tiles in the frame buffer (unless you're referring to not drawing some tiles at all - in which case set your scissor rect appropriately. oh, and if you can find out the GPU's tile size round your rectangle up to cover whole tiles)

comment 9y ago · link · parent

(And to put things another way: of course we've come back empty in all searches so far. If we hadn't, we'd stop looking!)

comment 9y ago · link · parent

> It is interesting that those who are looking experimentally for both dark matter and dark energy have come up empty in every experiment so far performed.

Given that <1% of the dark matter search space has been covered, this is an entirely unsurprising result.

The ΛCDM model doesn't come out of theory, it comes out of observation - the only thing we can make fit our observations of the universe is cold dark matter (and a cosmological constant, aka dark energy)

The thing a lot of people don't seem to get is that astronomers hate¹ dark energy and dark matter - they're really quite inelegant - but nothing else fits. Every other attempt (and lots and lots of time and energy have been spent on this) to explain our observations without hypothesising the existence of a lot of weakly interacting matter out there (e.g. MOND) has failed to match them

¹ In much the same way physicists dislike the standard model in all of its' ugliness - even though it works

comment 9y ago · link · parent

Sadly, late breaking (post silicon or just late in development process) bugs aren't generally particularly more exciting in terms of debugging than earlier ones - other than the urgency/annoyance and rarity, of course.

They do tend to be 10x as annoying to debug though. Not more difficult - just tedious - especially because you often end up triaging what turns out to be somebody else's bug (i.e. a checker on your block fails, so you need to trace it back to somebody else, and often they also trace it outwards to somebody else).

And this is where using it as a class example gets really difficult - even people on the design team are specialists in their own blocks. Giving students all the knowledge they'd need to debug a problem would be incredibly difficult.

comment 10y ago · link · parent

The architecture states that CTR_EL0 reports the _minimum_ ICache line size across all cores.

In this system, that would be 64 bytes.

comment 10y ago · link · parent

IC IVAU instructions are broadcast to all cores in the same 'inner shareable domain' (all cores running the same OS instance are in the same inner shareable domain)

comment 10y ago · link · parent

I noticed that I missed out mentioning that, yes, Thumb-2 made Thumb variable length (it already sorta-was, branches were always kinda 32-bit)

Any halfword where bit[15:13]=='111' && bit[12:11]!='00' is the leading half of a 32-bit Thumb instruction

comment 10y ago · link · parent

Thumb-2 (about 13 years old at this point) extended Thumb to cover the entirety of instruction set. That is, every* ARM instruction has a corresponding Thumb instruction (The converse is not quite the case)

There is very little reason to use ARM code in ARMv7 and up.

Incidentally, ARMv8's 64-bit mode (AArch64) adds a whole new instruction set, called A64. It's fixed width 32-bit per instruction, and the only option for 64-bit code.

* Excluding some really obscure, mostly long deprecated ones

comment 10y ago · link · parent

I took a quick peek at the redox source code and found kernel mode audio and network drivers. This is not a microkernel.

As for UB: Maybe it has less, but that which exists (e.g. noalias on mut refs) is very dangerous.

comment 10y ago · link · parent

I love Rust immensely, and it is perhaps my favorite programming language as of late.

However.

This is a microkernel. There is very, very little code inside a microkernel which, if written in Rust, would not end up inside an unsafe block. You are building the safe abstractions here; that code is inherently unsafe.

You could use Rust as a C replacement, but it is a worse C than C, and unsafe rust contains more perils (i.e. UB) than C.

comment 11y ago · link · parent

Type punning by pointer is explicitly UB per the standard.

Type punning by union is implementation defined behavior. Everyone fortunately defines it to Do The Right Thing (TM).

The truly standard supported way to type pun is by memcpy

float f = ...; int x; memcpy(&x, &f, sizeof x);

comment 12y ago · link · parent

The people who call Go a systems programming language are fundamentally misguided. It is an applications programming language under any reasonable definition.

comment 12y ago · link · parent

So I have an application which can attach location information to posts made from it. It requests access to location data (as is necessary) when installed, then lets you turn that feature on or off from an internal setting.

The request for location data implies the usage of the location feature, so the Android package manager won't let you install it on devices without a coarse location provider.

Therefore, like most Android apps which lookup location information, it just assumed that it could do location lookups. No point testing for a feature which will always be present, right?

Now guess what would happen if you used AppOps to turn location off? That's right, it would crash.

Not exactly acceptable user experience.

Now, what Google should do is probably: * For apps targetting Android 4.5+, certain features with privacy implications will default to OPTIONAL rather than REQUIRED when implied by a permission request. * AppOps is then able to toggle access to features which are declared optional, which apps must handle the absence of anyway.

comment 12y ago · link · parent

Hah! A Dual_EC_DRBG implementation would be an infinite improvement over the highlighted random number generator (which just calls libc functions srand(3) and rand(3)).