Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions

Submissions

comment 5y ago · link · parent

> with WASM kinda being it's microcode

Not to be too pedantic, just because you make a good point that's worth clarifying: I think you meant WASM being the processor's *ISA*, which is translated to microcode instructions that are more optimized for actual execution. Exactly like an Intel CPU isn't "really" executing x86 instructions anymore.

comment 5y ago · link · parent

Can you explain how all of that would follow? Naively, if we take the limit of c to infinity, aren’t we simply back to Newtonian physics? Why wouldn’t a pendulum work, for example?

comment 5y ago · link · parent

I see. Engineering blogs do fill some of that role in Microsoft’s stacks. This is not completely ideal either. Blog posts are frozen in time, and newer articles tend to only describe the deltas. So to get a current understanding, you also have to puzzle together various bits and pieces. But at the very least, blogs are easily searchable.

comment 5y ago · link · parent

> The DocC tooling isn't going to be anymore effective than doxygen or other auto generated documentation without good architectural documentation. A function definition is nice but knowing you need to decombulate a frobnob before snizzlizing or that decombulation can only safely be done on the main thread is often more important.

Explanations of design intent might be the most underrated kind of documentation. There's so little of that nowadays in general, in any technology. Personally, I blame shortened attention spans, the death of programming books, and the rise of Stack Overflow. I'm not familiar with the Apple ecosystem, is it really worse in this regard than others?

comment 5y ago · link · parent

They all hear an announcement at the same time via the hotel’s speaker system. (And we’re already ignoring so many laws of physics that the speed of light is the least of our problems.)

comment 5y ago · link · parent

Can someone explain to a non-native speaker what’s surprising about this?

> The leap from a word meaning "imaginary" to a word meaning "fantastic" struck me as odd initially, but apparently it comes from the sense of the word "imaginary" as "unreal".

What other sense is there that Wiktionary doesn’t know about?

https://en.m.wiktionary.org/wiki/imaginary

comment 5y ago · link · parent

> Apple has deliberately framed the question such that almost no-one will say yes

Not quoting the question makes it easier for the author to frame the formulation as malicious without risking the reader coming to a different conclusion. Here's the question:

"Allow APP to track your activity across other companies' apps and websites?

Your data will be used to deliver personalized apps to you.

[Ask App Not to Track]

[Allow]"

(AFAICT, the second sentence can be different, e.g. "Your data will be used to measure advertising efficiency", depending on the app.)

comment 5y ago · link · parent

2^10 is 1024, so hundreds of requests. Not a very high number. And since it’s a counter, even less. Easy to disguise; the official app is likely to do more requests in a one-minute session. And obviously, sophisticated attackers aren’t limited to one IP.

I’m suspecting you meant “easily guessable” in the human sense, not the cryptographic/security sense. My bad if I misunderstood you. Again, I’m not saying Instagram has any security problem, I’m just saying that this ID scheme in particular isn’t a security feature.

comment 5y ago · link · parent

> they are not easily guessable

I don't see how that's true. From reading the article you linked, you only need a valid shard ID (which you can extract from known IDs), the millisecond (which is guessable) and a 10-bit sequence (which you can easily brute-force).

(And that's completely fine if their security model doesn't require unguessable IDs.)

comment 5y ago · link · parent

About the Abrams movie: Too bad the same factor of safety wasn't applied to the buildings, where that should have been even cheaper.

Your point is good though. Just like we're now starting to put wi-fi chips into absolutely anything just in case, why wouldn't an advanced civilization simply use their super strength nanoparticles for everything? Why go out of your way to use worse materials?

comment 5y ago · link · parent

The article suggests using a probabilistic failure model instead of a large a safety factor, and explains how a safety factor established in the 1930s affected the cost of the Space Shuttle. But spacecraft might be a special case, where any additional weight is so expensive, and you also expect the models to be especially accurate and manufacturing to be extremely precise.

For more everyday civil engineering, I think the safety factor "covers up" a lot of systemic inaccuracies everywhere in the system, from modeling to design to manufacturing to unintended uses. Some of those you might account for in a probabilistic model. But it's very difficult to probabilistically model errors in the model itself, as the financial industry found out the hard way.

When driving over a bridge built the way suggested here, how comfortable can we be that certain stresses aren't correlated in ways that the engineers didn't anticipate? Or that a certain distribution isn't actually as well approximated by a Gaussian as it was assumed to be? Intuitively, it's a lot harder to be wildly wrong with the factor of safety approach.

To put this another way, a more complex way to reason about safety necessarily has more moving parts, and is thus more likely to be wrong. So in effect, adopting more complicated safety models introduces a safety risk all on its own. I think that needs to be considered as well.

comment 5y ago · link · parent

Not strictly related to the article, but I’ve yet to be convinced that most of the talk around this supposed “hard problem” is anything more than an attempt to reintroduce Cartesian dualism in more scientific sounding terms. “Quantum consciousness” and whatnot.

comment 5y ago · link · parent

The fanbase for these games can’t be large anymore. Sadly. My impression back then was that the new UT would have always been hobby project for Epic. At best a marketing vehicle for the engine. They never committed a full team, a lot of weapon design was outsourced to the community. So I don’t think it “didn’t work out” in any way that they hadn’t already anticipated. It’s probably just that when they hit the jackpot with Fortnite, it was hard to justify such a niche project.

comment 5y ago · link · parent

I'm not claiming that message passing has no role in distributed system design, of course it does. I'm just saying that message passing is not how OO languages typically work.

To me, it seems like you're arguing that having a less accurate (I'm sorry, less "limited") understanding of actual language semantics (that it's just "message passing") somehow helps you design distributed systems. In my experience, the opposite tends to be the case.

comment 5y ago · link · parent

You're absolutely correct, of course. I have no idea why obvious facts are downvoted to hell in this thread.

comment 5y ago · link · parent

> That the messages are implemented as dynamically dispatched function calls… would be an implementation detail. Though with far ranging implications of course

It can't both be only an implementation detail and also have far reaching consequences. (It's not an implementation detail.)

> You can model and reduce everything to lambda calculus.

You actually can't, that's precisely my point. Lambda calculus is inherently "synchronous". You can't capture the full semantics of actual message passing with lambda calculus, you need a process calculus (like pi calculus) for that. (In case you're confused, this has nothing to do with Turing completeness, it's about modeling the behavior of concurrent systems. It's a really interesting subject.)

The point is, lambda calculus is sufficient to model OOP method calls, including everything in Smalltalk and Self. It's not sufficient to model the semantics of Erlang messages.

comment 5y ago · link · parent

But you’re describing indirection, not message passing. Is that the source of the confusion? Even C has indirection.

comment 5y ago · link · parent

> You’re totally missing the point. Erlang is more “message passing” than any OOP language I’ve ever used.

My point is that OOP is not about message passing. You say that Erlang is more about message passing than OOP languages are, aren't we exactly in agreement here?

Also, it was the post I responded to that referenced actors, I'm not jumping to anything.

comment 5y ago · link · parent

They also come with many restrictions and rules on correct and efficient usage, not all of them checked by ESLint, that make the learning curve a bit brutal.

But yes, insanely useful once you get the hang of them, they enable forms of abstraction and composability that you'll sorely miss when working in other UI frameworks.

comment 5y ago · link · parent

I don't disagree that the actor model is useful. I just prefer to call it "the actor model", as you seem to do in your comment as well, instead of confusing it with what 99%+ programmers mean when they say "OOP".

(Also, personal opinion: The "purest intepretation" of what Alan Kay had in mind in 1969 is Smalltalk. That's almost an objective fact: if he had something else in mind, he would have done it. I know that he says he had something like Erlang in mind from the very beginning, but to the best of my knowledge, those claims are retroactive.)

comment 5y ago · link · parent

People say that OO is “meant” to be about message passing all the time, quoting Alan Kay and others. I never found this helpful. No mainstream OO language works this way, even Smalltalk doesn’t. You can’t design or understand real-world systems(1) with this message-passing metaphor, it will only mislead you.

Objects don’t “do” anything, they are simple passive data structures that are acted on by procedures. A certain set of procedures with privileged call syntax and visibility into the data structure are called its “methods”, that’s all the magic. The sooner you accept this, the better your designs are going to be.

(1) Edit: I meant here that you can't design real-world systems that way in OOP languages. I left that out because I considered it obvious from context, but it seems like it wasn't. I didn't mean to disparage any actual message-passing systems. My claim here is that OOP, as commonly understood and implemented by Alan Kay himself in the form of Smalltalk, is not about message-passing. Erlang is, but that's a different topic.

comment 5y ago · link · parent

It’s very unfortunate that the crypto-community uses the term “constant-time” this way. Without further context, I thought of algorithmic complexity, where “constant time” means “bounded by a constant” — which doesn’t guarantee resistance to timing attacks at all!

So if you’re looking for a crypto algorithm, make sure it’s constant-time in the relevant sense.

comment 5y ago · link · parent

Not a biologist, but my impression is that in some of ways, individual ants behave more like cells in a multi-celled organism than individual animals. The hive is the organism. (The analogy is certainly not perfect.)

Considering that, I don't find this paradoxical at all, still very fascinating. Please correct me if my understanding is wrong, but I think cancer also in some sense helps the individual cell at the cost of the organism. For example, cancers induce the formation of cappilaries to get more nutrients -- not so dissimilar from these infected ants inducing other ants to feed them.

comment 5y ago · link · parent

You’re right, that wouldn’t be too bad. I remember it being closer to five seconds, which I found really disappointing, and there are at least some hints of people with a similar experiences: https://www.raspberrypi.org/forums/viewtopic.php?t=278248

All of this might depend on peripherals, settings, SD card and so on, so maybe there’s more room for optimization than I had realized.

comment 5y ago · link · parent

That sounds interesting, what are the exact rules of this game? Are you only allowed to use components that actually existed at the time, or ones that might have existed? I.e., do you have to use a 6502, or can you design a better CPU, using modern knowledge, but considering old fabrication techniques?

comment 5y ago · link · parent

And it's not just Linux. A little known fact is that during startup, before running a single instruction of Linux kernel code, the Pi spends the first several seconds booting the closed source OS that runs the weird Broadcom "VideoCore". Only then does it initialize the ARM processor and start the Linux kernel.

comment 5y ago · link · parent

Well I'm 37. We might split hairs here about what is and isn't retro. The GBA came out in 2001, which admittedly isn't that long ago, but in many ways, it was simply a modernized, mobile variant of the SNES. Indeed, many of its most successful titles were simply ports of SNES games from the 90s, like Super Mario World. So in my mind, it's a mobile 16-bit console in spirit (I know it actually has a 32-bit ARM CPU). That's less true for the DS.

And I don't think many people would argue that 16-bit gaming had "no real charm", I consider it to be the peak of the 2D era. In fact, Super Mario World is often held as one of the best platformers of all the time. With all its fan mods, it's still widely played to this day. It's the early 3D era that followed that's mostly forgotten.

comment 5y ago · link · parent

I’ve actually tinkered with GBA programming, and you’re exactly right. It’s surprisingly accessible. Of course, it’s built as a console, not a computer, so you can’t actually program on it. But give it more RAM instead of ROM, a keyboard, and you’re almost there.

comment 5y ago · link · parent

Something I’d buy, and that the Raspberry Pi almost might have been, is a computer running a “retro OS” (instantly boots, BASIC-like commands, direct access to hardware) on a semi-modern ARM chip with a few megs of RAM and HDMI out. That would be fun to tinker with and program for.

The problem with this is that it’s so incredibly hard to do anything in 8-bit, I can’t imagine many people going to all that trouble if they’re not even getting the badge of honor if running on real retro hardware.

1
363738
51