HNHacker News
TopNewBestAskShowJobs

innocenat

1,324 karma · joined June 18, 2014

submissionscomments
innocenat··on Does a compiler use all x86 instructions? (2016)
The main problem is what is a definition of an "instruction"?

For example, let see the MOV instruction. How many instruction do you count it as?

Intel manual listed 2 variants of MOV using the same mnemonic. One for general register, and another for control register.

But if are also consider GNU AT&T syntax, then we have movb, movw, movl, movq, and movs, depend on operarand size. Do you count as 5 or 1? To make the matter more complex, movd and movq in GNU can also be used for MMX/SSE register, while Intel listed MOVD and MOVQ as seperate instructions for MMX/SSE (but they also list MOVD and MOVQ in the same section). How many do we count?

If you think all of these are silly and a move is a move, do you also count MOVDQA and MOVDQU as the same (MOVDQA works only with aligned 128-bit data, while MOVDQU also works with unaligned data). How about the VEX prefixed version, VMOVDQA and VMOVDQU, that works exactly the same but has no penalty when use in stream of VEX-prefixed instructions?

If we count by actual machine code, then there are like 10+ variations of MOV instruction depend on the operands.

(And I still probably have forgotten about a few more MOVxxx instructions)

The linked stackoverflow is a little bit silly, yes, but we actually cannot count how many instructions there are in x86/amd64.

innocenat··on I've been abusing HTTP Status Codes in my APIs for years
I don't understand. Using the definition in the article, wouldn't other 4xx statuses like 401 or 403 also be business/domain error and and not technical error?
innocenat··on I've been abusing HTTP Status Codes in my APIs for years
I don't know if it's still true, but back in the day returning 204 would mean the browser page won't refresh. It was one of the way to send data to server without page reloading.

Sending 204 with body definitely break the spec.

innocenat··on The Crime That Killed Shinzo Abe
The change in plan was supposedly announced using speaker car in Nara that same evening, and was also posted by various people on social media.
innocenat··on Programming Fonts
The downside of Isaevka is that next time you know it, it's already version 553.12.3 or something.
innocenat··on Former Japan PM Shinzo Abe Unconscious After Shooting; Man in Custody
The Japanese word 心肺停止 usually just mean he is not clinically dead, as only doctor can do that.
innocenat··on 4th Gen KDE Slimbook – Linux Ultrabook with an AMD Ryzen 7 5700U
The spec page said "Has 2 sockets, dual channel from 16GB".

Not sure if it was just recently changed though.

innocenat··on 4th Gen KDE Slimbook – Linux Ultrabook with an AMD Ryzen 7 5700U
It take your comment for me to realise that the laptop I am typing this on, Thinkpad Carbon X1, doesn't have its trackpad on the exact center either.

And it doesn't bother me one bit.

innocenat··on Increased Subscription Pricing for IDEs, .NET Tools, and the All Products Pack
Eclipse normally use its own compiler, JDT Core, which support many features Oracle JDK doesn't.

https://www.eclipse.org/jdt/core/

> An incremental Java compiler. Implemented as an Eclipse builder, it is based on technology evolved from VisualAge for Java compiler. In particular, it allows to run and debug code which still contains unresolved errors.

innocenat··on Apple's claim is that it bans other browsers for security
If you want website to not be broken on Safari, the solution is to give developer without a Mac the ability to test on Safari. I wouldn't be able to fix my site if it's broken on Mac Safari if I don't have a Mac.
innocenat··on The fragmented nature of modern-day railways
Because rails are 3 dimensional and has width.

Between 1435mm and 1520mm there's only 85mm space. I am not even sure if you could mount two rail that close.

innocenat··on How Many Tracks Do Train Stations Need?
Does Paris runs or just the CBTC capable of running? You need more than CBTC to run at 85 second headway. Loading/unloading time became huge problem at that interval.

I just checked Line 14 schedule and the most I can find is 34 train per hour, which is approx 105 second headway.

I am not saying that CBTC isn't capable of running higher interval than regular ATS and wayside signal (which is actually a very old technology), but in most case it doesn't matter. Even without moving block of CBTC, a very short static block (say, 100m) and in-cap signally should theoretically have the came capacity as CBTC.

innocenat··on How Many Tracks Do Train Stations Need?
And Japan run 28 train per hour with non-CBTC block, and that's my point. You can't really get much higher than that.
innocenat··on How Many Tracks Do Train Stations Need?
Shinkansen isn't really designed for short dwell time. And since it's Tokyo terminal, the train also need to be cleaned. For commuter train, 15 train per hour is easily doable with 2 tracks.
innocenat··on How Many Tracks Do Train Stations Need?
I don't know about "shitty" but old signalling system isn't a problem if well maintained.

Japan Chuou line mentioned in the article is still on the old ATS-P system and it runs 28 train per hour. Even older ATS-S system in Osaka runs 16 train per hour on the inner track of the Tokaido line.

The NY Subway made a big fuss of CBTC and that it would allow them to run more train more reliably than their current old ATS system, which I find funny looking at various line in Japan.

In fact, CBTC in Japan is mostly planned for rural line with infrequent service so the amount of infrastructure (track circuit, etc) are reduced

innocenat··on Cheat sheet for if I'm gone
It's perfectly legal to do that in my country as long as no benefactors is unhappy. In fact, we are encouraged (by the bank) to do that as the execution of will is painfully slow (at least 6 months).
innocenat··on Cheat sheet for if I'm gone
This resonate deeply for me.

My dad unexpectedly passed away recently, and there were a lot of problems because we didn't even know his phone unlock PIN (to be fair, he did told us several time, just that none of us bothered to remember). But one of the main problems is that tons of research fund is tied up in my dad account, so it's basically frozen until we can execute his will.

My mom manage my dad tax return so at least we think we know where all his money and debts are.

This event prompted most of my dad co-worker to create something like this cheat-sheet.

innocenat··on Official IE11 end-of-life in 2 days
My only wish is that Apple make it easy to run Safari, both latest version and older version, on non-Apple device.

I have had a design that broke only on Safari, and I would be at my wit end on how to fix it if I didn't have a Mac on hand.

Even Microsoft still provide VM with IE8 [0] for testing purpose.

0: https://developer.microsoft.com/en-us/microsoft-edge/tools/v...

innocenat··on Apple M2 Die Shot and Architecture Analysis – Big Cost Increase and A15 Based IP
Intel tick-tock was alternating microarchitecture change with process optimization every other year.

It looks like M2 is neither of those, and it's already 2 year.

innocenat··on GitHub user sends notification to 400k users
Nah it was noon. I was sleeping in.
innocenat··on I only care about the helpful notifications, not the promotional ones
Uber Eat does different channel for notification though. Mine is set exactly as you described.
innocenat··on GitHub user sends notification to 400k users
I was sleeping and the constant new mails notification woke me. By then it was too late to unsubscribe as the topics was already locked, but I was only on like 60-70th mails.
innocenat··on RED is suing Nikon for infringing on its video compression patents
Apple is paying RED for #9,230,299. A quick look at the claim doesn't seem to have this patent listed.
innocenat··on Windows OS, Services and Apps: Network Connection Target Hosts (2021)
I have been using Linux for several years, but I am going back to Windows myself.

I vastly prefer Linux, but I need LINE (a messenger app popular in some Asia countries). Their Linux app (actually a Chrome extension) stopped getting new features 5 years ago. That's kinda THE deal-breaker for me.

Another minor reason is Dropbox Smart Sync. I can use Selective Sync, but having smart sync is of course better.

(I would rather Windows than macOS)

innocenat··on GitHub Is Down Again
It's already open now*.

* Subject to a very strict definition of tourism.

innocenat··on Logitech MX Mechanical Keyboard
Having more than 2 USB-A at this point is weird though, as things are moving toward USB-C.

Ideally I would want 4 USB-A and 4 USB-C but I am not delusional enough.

innocenat··on Apple Shipped Me a 79-Pound iPhone Repair Kit to Fix a 1.1-Ounce Battery
If only thing were that easy.
innocenat··on HP Dev One Laptop with Pop_OS
This is exactly my impression reading the post on laptops/phones here the past few days.

I now understood why the manufactures doesn't really seems to care for this segment, as everyone seems to have enough dealbreakers that nothing's going to sell well.

innocenat··on The new and upgraded Framework Laptop
If it's only for open in new tab, then Ctrl+Left Click work as well when using trackpad.
innocenat··on Kindle, ePub, and Amazon’s love of reinventing wheels
But at that point your client isn't really reading EPUB isn't it?

Amazon backend accept EPUB (either from KDP or from Send to Kindle). Amazon then process EPUB into Amazon own format, and deliver that to Kindle device. Which sounds a lot like what you described.

Btw your project is interesting. Does it support vertical-rl EPUB? After finding out Moon Reader+ doesn't it make me doubting everything now.

← PreviousPage 5 of 21Next →