Herdinger
I thought about calculating the worst case execution time by hand and than just doing a literal report solution on a timer after time has passed
The issue with that strategy is that I would like the OS to stay responsive (and there is interrupts that fall into that time frame) so could overshoot the budget and then we’re back to square zero.
I think at this point I probably have no choice other than unrolling it into addition :(
There is mitigations for those kind of things that make delta analysis impossible but I would REALLY just like the perfect solution that doesn’t depend on the secret for timing at all.
MULU operations are not constant time but depend on popcount. That has an easy work around just also do the MULU of the bitwise inverse, both instructions sum to a constant cycle count.
The brick wall I hit is related to the Macintosh SE ram being shared between CPU and video system. Every few cycles the CPU stalls instruction fetching, which turns the both MULUs together take the same amount of time each time into there is slowdown depending on the popcount of the first instruction.
I don’t know if anyone has any solution for this, there is prefetching of one instruction so all should be well, but it seems like the cpu stalls the in progress instruction if the prefetch is stalled.
I've done it twice and had a great experience, although in the 10X pricing range compared to recordcut.com.
I've used https://www.online-druck.biz/lp-cover.html for the sleeve, but I don't know if they ship internationally.
In my opinion gaining accuracy for a single engine is way harder than for general emulation since one does not have a giant corpus that can be used for validation, just the game as is. I‘ve seen a few approaches that try to go the extra mile like the bit identical Super Mario 64 decompilation, or Dungeon Master where the developer recorded inputs on actual hardware and checked that the play through reaches the end of the game provided the same inputs.
Not to take away from the tremendous task those reverse engineering efforts go through, I am very grateful to have classic games running on modern hardware with enhancements and modding support!
Show HN: Realtime Spheretracing in WebGL
https://www.eddy.work/showcase
I am moving from Germany to the SF Bay Area, so I took some time to assemble a showcase of my past projects. It feels weird to post each one, so I am just sharing them under the "flagship" toy I made a few years ago.It is a special kind of ray tracer implemented in a GLSL fragment shader, I've ported it to VR and other platforms in the past and now got around to port it to WebGL. With this port...
But I just want to raise awareness that currently it is impossible to get 60fps for a canvas in chrome on MacOS without dropped frames:
I have tested with an M2 Air and an older Intel MacBook Pro. I think this is related to this bug report (open for many years) but I am not sure:
https://issues.chromium.org/issues/41136434
One might say MacOS users use Safari most of the time, but sadly it is not possible to get a pixel perfect (or at least not wildly off) canvas if a user changes the zoom settings:
devicePixelRatio does not change on zoom as it does in other browsers and I believe the spec. https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...
This is a decision made for accessibility reasons on Apples part, but I can’t find the quote on that anymore. Alternative mechanisms to size the internal resolution of a canvas correctly are also not supported on Safari.
I don’t think you or anyone can assure me that if I am currently trying to enter the country for a visit I might not be turned away by customs (worst case scenario being barred from entering for years).
I don’t know how you can plan your existence around random chance of US customs.
Please correct me if I’m wrong with that assessment.
To come highlight again, this has been a huge surprise to my wife’s family who resides on both sides of the political aisle.
They assumed it would be bad, but not quite how bad.
My wife is a US citizen and we currently both live in Germany and planed to move at the and of this year. We’ve filed a I130 in November last year and got an initial estimate of it being done right now (7 Months not to bad). But looking further into it it takes at least 15 Months to process this stage of immigration, worst case scenario it could’ve been 50 months (4 year!!!)
This wouldn’t all be to bad but to add insult to injury it looks like I’m effectively barred from entering the US during this period and US customs can even bar me for 5 years from entering the country if I try.
I just feel incredibly sad about the fact that the way to go if you have a sweetheart in the US seems to be to illegally marry on a Tourist entry into the country…
The earliest the US would even respond to our inquiries is in 2024, which is frankly ridiculous.
There doesn’t seem to be any workarounds other than transferring on an L1 Visa between companies that are situated in Germany and the US, every other visa is single intend (i.e illegal if you plan to stay and the US gets to decided if you’re trying to do that)
I don’t understand what the US is scared of, taking their social benefits? Especially since 90% of the I130 are approved, there is no reason it takes that long or needs such rigorous vetting.
Peter if you know any better or disagree please let me know :(
I feel like there is one important detail missing. There is no way to turn off an API like this without guaranteeing not to introduce breakage. Even for a well behaved client that has enough foresight to anticipates API deprecation.
You only get the specified headers AFTER calling the API endpoint.
So for example if a device sits in a drawer for a year, then calls the API your response is undefined if the API has been turned off. No chance to get the date beforehand.
The way I handled situations like this is to explicitly make 'turned off' part of every single API response.
Something like APIResponse = SpecificResponseForEndpoint | TurnedOff
That way API interactions are always well defined, clients can implement a global handler that does the appropriate thing, locking the client in a 'please update' state if it is an in house developed app for example.
For HTTP I usually reserve the 410 status code for that since it usually does not collide with the more common 404.
The problem(I'm sure it's great nevertheless) is that their technique doesn't add any new colors and doesn't work for full dichromats.
Today we've got the technology too supply different color information to each eye, it's even commonplace in the form of 3d television. I did a bit of testing on how the brain interprets this (fun party trick, use complementary colors for each frame and the resulting picture is grey without the glasses and can be psychedelic shenanigans with.)
How stable the resulting color is seems to be connected to object recognition, for a fruitstand there certainly were colors I didn't see before, for a fullscreen it oscillated between colors irregularly.
I would love to reverse engineer the interpolation function the brain is using. Since it's subjective it's difficult, even with a big sample size you can't match to control colors.
If anybody wants to get into this topic I don't have any papers since it was a while back, but topics such as MacAdam ellipse, color confusion lines and image daltonization should be good starting points.
I realized about ten years ago that what I was expering wasn't normal. The condition was completly unknown at the time and I got multiple MRI's, my eyes and nervous system checked out from every angle and there was nothing abnormal.
Talking with many people I know it turned out that this condition is surprisingly pretty common, though in a mild form. People told me they saw some form of constant noise too but dismissed it as normal.
Your article got me to check the condition out again and it turns out there is new research from May identifing something wrong with the brain of people under the condition.
It's nothing life threatening like you're story, but still it's something you have to learn to live with it's there 24/7 even when you close your eyes and can be imparing at night.
http://www.eyeonvision.org/news/107-visual-snow-research-stu...
http://en.wikipedia.org/wiki/Visual_snow
Sadly I'm not in the US and there don't seem to be any research studies in Germany. Therefore I want to shout out if anyone on HN suffers from this condition, maybe hasn't even realized it because it manifests in mild form. You can all help the understanding of the condition.
Of course you can represent utf8 in null terminated strings but you have to escape escape the null character, or if used as a terminator implicitly assume it's there. The basic jist of that was that I wanted to say, dont use byte encodings internally if you got large registers available and keep attention to null termination and it's pitfalls.
But justification beside I'm going to give it more time and reference check against the standard, refrase my intentions so that they are clear and probably shine more light on the positive aspects of the language and put it intro relation with other languages.
Hacker News isn't a place for pre alpha done in very little time drafts.