Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions

Submissions

comment 4y ago · link · parent

With now 100% WFH I could tell I was deteriorating so I adopted a rescue dog Who Must Be Walked daily (~ 50 min) and an Apple Watch to track my exercises (at 3 x 99%, chasing 100%). It helps that I live on a hill and the park is downhill.

It was hard to find the motivation before but my four legged friend has made all the difference.

comment 4y ago · link · parent

:) I didn't say it was perfect, but my point was one of concepts as something feasible as opposed to pure marketing fluff.

comment 4y ago · link · parent

Sample size of 1: my service happens 6 days from now (Bay area). From past experience, getting a slot in the service center can be .. ahem .. difficult, but getting a service call has never been an issue. I bet it's easier to scale the mobile service than building new service centers.

comment 4y ago · link · parent

For certain, but recalls are not unusual for any brand. As best I know Tesla is alone in having the option of an app-scheduled mobile-service which is massively more convenient for me and likely an order of magnitude cheaper for Tesla (compared to bringing in the car to a oversubscribed service center).

comment 4y ago · link · parent

Also, "recall" sounds like the cars have to physically move back to the factory. Reality: I took 10 sec to schedule a visit from a Mobile Technician who'll do the work in my driveway while I go on living my life.

Big non-issue.

comment 4y ago · link · parent

I'm really struggling to understand why this exist. Yes, clearly this is 100% a marketing effort to make Citroen look "cool" or even still-relevant, but anyone watching this should yell "He has no clothes on" as this "concept" has no feasible path to reality and isn't even an obviously good solution to the problems they are trying to solve.

Contemporary automobiles are clearly not perfect, but they have evolved over a century to put considerable thought to safety and efficiency. This "concept" throws everything out the window in exchange for ... cars that go sideways.

I'd like to contrast this to Volvo's effort a decade or so ago where they asked the question "Car design is all male focused, but what are the _actual_ issues women care about?" and came out with really useful if mundane ideas (easier/hands-free access, greener material, etc). There are things that can actually be realized and would be helpful.

comment 4y ago · link · parent

I did forget to mention the requirement that you can't branch into the middle of an instruction. If you have both of these constraints then you can unambiguously determine the location of all instructions in any aligned 64-byte block, including at I$ fill time.

Implementing this would require instruction fetch to take an exception on line-crossing instructions (which must be illegal) and a change to the assembler to insert a 16-bit padding nop or expand a compressed instruction to maintain the alignment. There is nothing needed from the compiler (or linker AFAICT). JITs will have to be aware though.

comment 4y ago · link · parent

I fought against making the _current_ way to do compressed instructions a mandated part of the Unix profile, but RISC-V was (at least at the time) dominated by microcontroller people and there was a lack of appreciation of the damage it incurred. A lot of people far more senior than me couldn't believe what happened.

Interesting to contrast with Arm which upon defining Aarch64 did _away_ with variable length instructions and thus also page crossing ones. Maybe they knew something.

comment 4y ago · link · parent

That's a false strawman. There are infinitely many ways to achieve the same or better density without the drawback. Allowing instruction to span cache line, or even pages, is a mistake that we'll pay for forever.

The simplest possible mitigation would have been to disallow an instruction from spanning a 64-byte boundary. It would have almost no impact on instruction density, but it would have saved a lot of headaches for implementations.

comment 4y ago · link · parent

My day job for 6+ years is implementing high perf RISC-V cores and my name is in many of the RISC-V specs.

Variable length ISAs are characterized by not being able to tell the beginning of an instruction without knowing the entrypoint. This applies to RISC-V with compressed instructions. Finding the boundaries is akin to a prefix scan and has a cost roughly linear in the scan length, but IMO the biggest loss is that you can’t begin predecode at I$ fill time.

comment 4y ago · link · parent

Good question. The answer is all the poor souls that N years later find themselves stuck with a data in a legacy format that they have to struggle to decode faster.

Of all the artifacts in our industry, few things live longer than formats. Eg. we are still unpacking tar files (Tape ARchieve), transmitted over IPv4, decoded by machines running x86 processors (and others, sure). All of these formats couldn't possible anticipate the evolution that follow nor predicted the explosive popularity they would have. And all of these (the latter two notably) have overheads that have real material costs. IPv6 fixed all the misaligned fields, but IPv4 is still dominant. Ironically, RISC-V didn't learn from x86 but added variable length instructions making decoding harder to scale than necessary.

I'm not sure what positive lessons you think we should learn from QOI. It's not hard to come up with simple formats. It's much harder coming up with a format that learns from past failures and avoids future pitfalls.

comment 4y ago · link · parent

Since we are rehashing this for the 3rd (4th?) time, I'll repeat mine (and apparently many others) key critique: there is no thought at all to enabling parallel decoding, be it, thread-parallel or SIMD (or both). That makes it very much a past millennium style format that will age very poorly.

At the very least, break it into chunks and add an offset directory header. I'm sure one could do something much better, but it's a start.

EDIT: typo

comment 4y ago · link · parent

I didn't know that Apple killed offline web apps. That sucks (I've used that a lot in the past). Pine64 Pro will get a 2nd look.

comment 4y ago · link · parent

I guess we are in violent agreement then. I just happened to have fresh scars from a lot of knowledge that departed with an ex-colleague recently.

comment 4y ago · link · parent

All these points are spot on, but I want to reorder the priority. I cannot believe that a format is introduced in this millennium that doesn't have a single thought to aiding parallel access/decode. The single-thread focus will not age well; even low-end µProcessors are going multicore today, and going forward that will only accellerate.

comment 4y ago · link · parent

That was my initial reaction too, but then I thought "using such a service might encourage the code-based to be external-reviewer friendly?". That is, instead of all the shared history/context that internal reviewers have, make all that as explicit as possible, ideally in the code, or at least in good code comments. Would also go a long way to avoid the "bus factor" (or more commmon: the "sudden-quit factor").

comment 4y ago · link · parent

Exactly. Vibration, or tactile feedback, is very helpful for on-screen keyboards (it’s one of the feature that makes Free42 great), but I can’t use that in a web app which is frustrating.

comment 4y ago · link · parent

Trust me, you can immediately feel the difference and you can see the difference after at most a year. As someone who types 12+ hours every day, yeah, I care. Car paint protects the body, but is otherwise almost exclusively cosmetic. Keycaps however is what you touch. You don't touch a keyboard (in a meaningful way), so I think your analogy is flawed.

comment 4y ago · link · parent

Making a split version is kind of an obvious option and Ergodox was _far_ from the first fully split keyboard. Two people can both have the same idea (which is why patents are patently unfair).

comment 4y ago · link · parent

This is all getting into personal preference, but AFAIK, ergonomic standards do not exactly recommend eye level, they recommend that looking in a straight line you should see over top of edge of the monitor. There's definitely some tradeoffs to be had as having the monitor too low can put stress on your neck (which translates to neck pain after a while).

comment 4y ago · link · parent

You find ABS (soft and light plastic that wears down with even moderate usage) to be superior to PBT which is heavier and FAR more durable?

comment 4y ago · link · parent

Base version gets PBT keycaps (yesss!) and Pro gets ABS (buuuh) Sadly not a typo. Hopefully the PBT set is available separately or (pretty please) PMK will make a custom run of the Ice-Cap.

comment 4y ago · link · parent

Does it? It's something I constantly worry about, but so far distributions are holding steady to RV64GC which essentially all 64-bit RISC-V cores support. A few support some proprietary extensions, but those can be ignored by most. The Dubhe core claims to support some of the newly ratified extensions, which if true is great exactly because they are standard and thus doesn't represent fragmentation. I expect of course that libc eventually will start supporting these extensions _where they are present_ but not mandate them.

comment 4y ago · link · parent

It’s not, I was unclear. I wanted M2/Oberon? with a different, much less verbose syntax.

I actually went down the path of changing the Oberon parser to take a different syntax. My PoC worked but I didn’t complete it.

comment 4y ago · link · parent

Linus, Anders, Lars Bak (and my humble self) are all Scandinavians. I have been told [far too many times] that we tend to be rather "direct" which often clashes with other cultures (most extreme counter example I've seen are the always polite Japanese).

I have no problem with people with an attitude. I just don't always agree with them (all of the aforementioned included).

comment 4y ago · link · parent

Controversy alert:

Beauty is in the eye of the beholder, but as best I remember I always lamented the verbosity of Pascal (I worked professionally for a time in Turbo Pascal). Modulo-2 was IMhO a much better language and had he used that, revised with a more concise syntax a-la C/C#/Rust, I think I would have been a lot happier. (I must resist the urge to go back and reimplement BLS Pascal the way I would have liked it).

Stepping back a bit, what really made Anders' early designs remarkable wasn't just the engineering, but the deliberate trade-off he made. He emphasized compilation time over almost everything (I think all contemporaries tried to generate as good code as possible). This priority is what dictated a one-pass compiler and in assembler. I saw the same unusual economy in his code where sometimes he would do things in a less efficient way, presumably because it saved code size.

comment 4y ago · link · parent

Anecdotes:

Anders is a bit of a childhood hero of mine.

I got the BLS Pascal 1.2 and the shock of coming from line-based interpreted Microsoft BASIC to full-screen editor with lighting fast compiler in three keypresses (Ctrl-X, C, Return) is hard to describe. (Full-screen editing and compilation representing two quantum leaps).

Studing the internals of the BLS Pascal (Z80, Nascom 2) literally boggled my mind with the genius of the code which was unlike any other Z80 code I had read.

I was fortunate enough to meet the still young Anders at the "Herningmesse" where he was demonstrating Compas Pascal (running a Maze generator to attract eyeballs). He was very nice but I was too shy to ask the really good questions :)

I'm still actually chasing this. I have never managed to get a working version of BLS Pascal 1.3 but I know it exist (help would be most welcome - the one Google find you is corrupted).

comment 5y ago · link · parent

All the implementation I know of all does the same thing: they expand the compressed instruction into a non-compressed instruction. For all (most?), this required an additional stage in the decoder. So in that sense, supporting C mean a slight increase in the branch mispredict penalty, but the instruction itself takes the same path with the same latency regardless of it being compressed or not.

Completely aside, compressed instruction hurt in a completely different way: as specified RISC-V happily allows instructions to be split across two cache lines, which could be from two different pages even. THIS is a royal pain in the ass and rules out certain implementation tricks. Also, the variable length instructions means more stages before you can act on the stream, including for example rename them. However a key point here is that it isn't a per-instruction penalty, it a penalty paid for all instruction if the pipeline support any variable length instructions.

comment 5y ago · link · parent

This of course utter nonsense. There's nothing different about the performance of compressed instructions.

comment 5y ago · link · parent

> The compressed encoding has good code density, but low speed.

That's 100% nonsense. They have the same performance and in fact, some pipelines can get better performance because they fetch a fixed number of bytes and with compressed instructions, that means more instructions fetched.

The rest of the argument falls apart resting on this fallacy.

1
192021
52