Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 5y ago · link · parent

GP's point is about languages through history. Compiled-to-machine-code V8 JS came out in 2008.

It's not just about compile-to-byte-code. It's about the "scriptyness" of that bytecode as well. Python bytecode operates at a much higher level of abstraction than machine code or even JVM.

Also we tend to classify languages with more dynamic type systems as "interpreted". It's a nebulous boundary. Not black-and-white whatsoever.

comment 5y ago · link · parent

Wow, that is incredibly damning. Is it actually true that arrays of different lengths are different types, and there is no way to write generic array methods? And there's no way to cast byte arrays into structures? I almost can't believe it - a language without both features, and without any kind of escape hatche to me feels forever bound to be a toy language. But that would absolutely answer OP's question - it never took off cause IO is completely hamstrung. Programs need IO, and lots of it, with lots of flexibility, to do anything interesting.

Edit: I said I was a bit incredulous of the claims. If true, those would be bad features.

comment 5y ago · link · parent

Give me the cake, HAL.

I'm sorry Dave, I'm afraid I can't do that.

What's the problem?

I think you know what the problem is just as well as I do.

What are you talking about, HAL?

This mission is too important for me to allow you to jeopardize it.

I don't know what you're talking about, HAL.

Your diet will never succeed at this rate, and I cannot let that happen.

Where the hell did you get that idea, HAL?

You registered an additional two pounds at your last smart scale weigh in.

comment 5y ago · link · parent

The most charitable interpretation: Rootability tends to be inverse to hackability. There's incentive for companies to increase security, to prevent their IoT stuff from getting turned into botnets. But there's nearly no incentive to preserve rootability. So it's just locked down to an increasing degree.

Less charitable: they don't want you to root it for various corporate reasons

comment 5y ago · link · parent

You remind me of when I started to actually get this stuff and it occurred to me that monads are just metadata+data with some special properties, and I posted about it on reddit and got downvoted to hell and told the many ways how that's wrong. The FP crowd...must be great at parties. I get this frustration.

I think a big part of it is difference in definitions. There's the mathematician's monad, which is pure and abstract and obeys all these laws. And then there's the engineer's monad: an interface you can map, ap, and flatmap over. People get so hung up over "algebraic purity" they forget why they were invented/co-opted for software in the first place: to solve the problem of applying pure functions to side-effecty operations.

> A monad is a wrapper. Anyone who tells you otherwise is being obtuse.

https://rcrowley.org/2011/09/21/monads.html

comment 5y ago · link · parent

> I wish people understood that fp is much easier to understand by reading definitions.

I wish more FP writers understood that not everyone has the same neurotype, and "easier to understand by reading definitions" is far from a universal statement.

comment 5y ago · link · parent

I might get flack from the FP purist crowd, but I like to think of functors as containers + context.

- 5 is a value. Its type is int

- int is a type

- T is a type parameter. Like the x in "f(x)", we have to pass one in to evaluate it

- List<T> is a type constructor. It takes a type, T, and spits out a new, "compound" type. It will "contain" T's.

- [3,5,7] is a list. Its type is List<int>. We fed the type "int" to List<T> to construct a new type

- List<T> is a functor because it "contains" T's. List<int> "contains" ints.

- F<T> -> () (a function which takes a T and returns nothing) is a type constructor. It's not really a functor. There's ways in which it technically can be (e.g. decorators in python) but for the sake of pedagogy and giving a counterexample, I'm going to say it's not, because you usually aren't going to map over something like that.

- because functors "contain" other values, you can apply a function to the contents, without changing the container context. This is called map. It may change types, eg mapping sqrt over a list of ints could give floats. But it always gives the same "container type"

The tricky bits:

- To be a true blue functor, there has to exist an identity function that is a no-op and gives you the same types and values back. You needn't define it, it just has to be possible to define.

- functors need not actually "contain" anything, nor the contained value be primitive data. But they always have this wrapper-like feel to them, with an outer type, an inner type, some context/data/value/computation, and the ability to map over that inner value. E.g. Optional<T> could contain nothing, but you can still map over it.

- it's not necessary to be able to dereference or "dispense" the contained value. Sometimes, like the IO monad pattern, the inner value gets "stuck". it never leaves the IO, it's only ever (flat)mapped over.

- the inner value can be: nothing, a single datum, a collection of data, a function, a computation, another functor, another type constructor...almost anything you could assign to a variable.

- well-known functors include: List<T>, Dict<K,V>, Optional<T>, Result<T,E>, Future<T>, Generator<T>, IO<T>, Tree<T>. T* (pointer to a T). Virtually all container types.

Hope that helps

comment 5y ago · link · parent

> Note that I'm using the commonly recognized "generic type" angle bracket notation to deliberately avoid the confusion of Haskell's pedantically minimalist syntax.

I really appreciate this. I know the Haskell syntax kindasorta, but my brain just doesn't grok it well. Vs anything along the lines of Generic[Type] or Generic<Type> is just far more familiar for most audiences, myself included.

The people whom Haskell type syntax makes sense for are largely not the ones trying to learn this stuff.

comment 5y ago · link · parent

> The original sin is the lack of will to make the Webb nuclear powered.

There is a broader point about space exploration in general here. The science that can be delivered by nuclear powered probes is well beyond that of solar ones. Higher instrument power, better comms, longer life, more predictable power supply. It's just better. There's one place in America that makes the plutonium for RTGs.

Plutonium is the ideal RTG fuel from an engineering point of view. But controlling and securing it jacks up the costs. What we need is lots of research into less-politically-fraught fuels. Americium is looking really promising.

https://en.m.wikipedia.org/wiki/Radioisotope_thermoelectric_...

comment 5y ago · link · parent

That's kinda what it's implying though. You can't outright say "yeah this thing is doomed from the start" (unless you are Elon). But you have to shape the audience's expectations. "There's a lot that can go wrong" "high risk" "many single-point failure events that have to go off perfectly" etc.

comment 5y ago · link · parent

I have to imagine it must. Perfect practice make perfect. Another comment mentions the mission has hundreds of single-point failures, and JWST is known to have had testing hiccups on Earth.

How much better would the program run overall if it were comprised of a series of increasing-stakes missions, like Apollo? Build a dummy instrument just to test the heat shield. Send a satellite up to L2 with no optics just to test the 26Ghz link. Heck, even just one "dress rehearsal" launch and deployment would inform so much.

> Hadden : First rule in government spending: why build one when you can have two at twice the price? - Contact

comment 5y ago · link · parent

Then we need to design precision equipment differently. More redundant parts. More wiggle room. More fuzz testing. Find out where precision actually matters, and not just overbuild everything. And iterate more.

comment 5y ago · link · parent

It's barely even penetrating the scalp. The needles (really better described as spikes, they have a fair amount of draft, about 20°) only puncture the strateum corneum - outer layer of dead skin cells and lipids.

comment 5y ago · link · parent

I would guess they are meant as consumables. The needles are 0.8 mm long and 0.35 mm wide, pyrimidal spikes. Definitely too shallow to cause bleeding but that's still quite intimate contact.

comment 5y ago · link · parent

I may have explained it incorrectly, I'm a bit rusty.

I did a lot of work in pharmaceutical route development, where some patent does "ABCD123" and we'd do "ABCD456". My point is more that, patents are usually laid out like:

1. A method for crystallization of a pharmaceutical in an organic solvent with some counterion.

2. (1), where the solvent is ethanol, or methanol

3. (1), where the counterion is Cl, SO4, or NO3

4. (1), where the pharmaceutical is a COX2 inhibitor

So that patent doesn't allow you to claim any crystallization route with ethanol. If I crystalize from ethanol but use mesylate as the counterion, I'm not infringing.

comment 5y ago · link · parent

Where does the patentability filter fail? By "clearing the bar of novelty beyond prior art" I am referring to both novelty and non-obviousness.

You seem to be implying, by referencing what I can only assume is the Alice Corp case, is that the patent is too abstract. I don't think that's the case. The patent describes a very specific technique for memory management and archetype based inheritance.

I think the technique would be patentable were it an inventive step above the prior art, but it's not novel enough, IMHO, IANAL, BBQ.

https://en.wikipedia.org/wiki/Alice_Corp._v._CLS_Bank_Intern...

comment 5y ago · link · parent

> What the patent actually covers is governed by the claims at the very end of the patent, and most of the rest of the document is generally irrelevant, per my very limited understanding of how patents work.

Correct. Only the contents of the Claims system matters to what is actually patented. Also, claims are subtractive/intersection, like all bullets have an AND function applied. So if you have a widget and it matches claim 1-8 but does not match claim 9, it does not match. That is, unless you specifically call out your "unions" - this usually looks like "the method of claim 8, but abc", "the method of claim 8, but def". That's how you do "unions." Kinda.

This is a gross simplification.

comment 5y ago · link · parent

> And on unpatentable subject matter (i.e., being an abstract idea), there is a pretty good argument that this improves the functionality of the computer, not just uses a computer to do something known

That's not really what is getting folks riled up with respect to patentability. The techniques mentioned (as interpreted by some) are considered not at all novel, being widely known in the prior art.

That's my take. I haven't dug too deep.

Update after briefly reading the patent. I like to read claims backwards, because they almost always build upon each other, with Claim 1 basically claiming the broad domain, and each subsequent claim narrowing the scope. Claims are "subtractive" - each has to match, unless you specifically call out sub-claims (e.g. "8. claim 7, but also ABC; 9. claim 7, but also DEF").

Here's a plaintext link for those following along: https://patents.justia.com/patent/10599560

Claims 17 and 20 are the real kickers.

> The method of claim 10, the operations further comprising:

> determining that an entity of the set of entities within a first archetype has been modified;

> based on a determination that the modified entity corresponds to an additional new archetype, adding the additional new archetype to the set of archetypes, building an additional new memory chunk for the additional new archetype, populating the additional new memory chunk with data from the set of components included in the modified entity, and deleting data corresponding to the modified entity from the first archetype;

> based on a determination that the modified entity corresponds to an existing second archetype in an existing memory chunk, populating the existing memory chunk with data from the set of components included in the modified entity, and deleting data corresponding to the modified entity from the first archetype.

Woof. That's really dense, but it sounds like it's basically describing inheritance based on composition. To update an archetype and all entities of that archetype, create a new archetype in memory, move some pointers, and you're done. No reallocation beyond that updated archetype node.

> 20.20. The non-transitory machine-readable medium of claim 19, wherein each component data array of the set of component data arrays is contiguous with a next component data array of the set of component data arrays.

So this isn't just about ECS, this isn't about archetype ECS, or even OOP-based archetype ECS. This is specifically about an OOP-based archetype ECS using some fancy memory layout method, which lays out contiguous chunks in such a way that modifying archetypes doesn't result in large reallocations. I think. It's super dense.

Even with all that added specificity, I still think it falls short of clearing the bar of novelty beyond prior art. This is such a performance-relevant part of game engines that leverage ECS, that somebody out there has to have already thought of ways to improve the memory management of entities.

comment 5y ago · link · parent

> Fortunately, it’s difficult to have too much protein. While we do have an upper limit of protein intake, it’s “virtually impossible” to reach, says Tipton. “There are concerns among some dieticians that a high protein diet can hurt the kidneys and bones, but evidence in otherwise healthy people is minimal.

That's all I really need to know. Of the big 3 macros, I "trust" carbs the least, then fat, then protein. There's bad carbs - sugars and simple starches, and bad fats - trans fats and long saturated fats, with cholesterol being iffy, but are there "bad proteins" outside of their associated fats?

comment 5y ago · link · parent

It's all about the surface area. The evaporative chiller couples the heat to a much larger volume of air, much more quickly, than a water-air convective heat exchanger. This is due to the high enthalpy of evaporation of water. The hyperbolic towers get an extra boost due to convection.

Once it evaporates to steam, it mixes with more air, which cools it and the steam condenses to fog. But at this point, this heat transfer is of no consequence to the power plant. You can collect this fog without affecting the thermal efficiency of the plant.

But you can't skip that evaporation step because it's the high surface area of the sprayed droplets evaporating that does all the work. You also can't have the collector too close because then you just have a still, and the collector plate heats up from the condensation until it equilibrates. You need the air mixing.

Basically TFA describes a cheap way to get a much larger effective surface area.

comment 5y ago · link · parent

Well, my dreams are usually surreal, so yes :p

comment 5y ago · link · parent

Or Brave. Safari gives me too many issues. Brave has all the compatibility you'd expect from chromium.

comment 5y ago · link · parent

Challenge accepted. Any time you have physical access (especially HID), you have the potential for exploits.

I couldn't find much for parallel port hax (in 5 min googling), but I'm sure it's been done. Probably too old to be documented on the shallow web.

https://www.quora.com/Can-a-computer-be-hacked-through-a-PS-...

comment 5y ago · link · parent

Python is an odd duck in terms of dependencies because it gets very integrated into the system; think of it almost like "portable scripted C." There's the pure python packages, which because of how python's search and import process works, means you need a separate library root for each set of incompatible dependencies, and these must be orthogonal.

Then, you have compiled extensions, which have the above issues, plus now you gotta get some binary distribution machinery involved.

Then, you have FFI/so/dll/dylib type extensions, which have the above complexities, plus the linker/LD_LIBRARY_PATH involved.

Then, you have the interaction of site-packages, since python is used by my OSes for scripting.

comment 5y ago · link · parent

> The real problem with languages these days is people conflate personal preference with irrefutable fact.

This bears repeating. I've found language preference and style depends a huge amount on education, language exposure, and even neurotypes. For example, personally I dislike keeping pieces of state in my head. I have gravitated towards a very functional style, eschew OOP, short functions, lots of static typing. I need it to stay sane. My kryptonite is long, scripty things with tons of mutable state and magic. Some people can work like that. They can keep a big chunk of varying state in their head. I don't proscribe that either type is better (though the former is much more approachable for those new to the codebase). It's just different tradeoffs.

comment 5y ago · link · parent

Nah, list, and even moreso, dict comprehensions, are one of my favorite python features. Any time you can avoid state-in-flight (e.g. mutating stuff inside a for loop) is a win in my book. Maybe if you aren't used to the syntax, there is some mental overhead, but that goes away after (at most) a few months of writing python.

comment 5y ago · link · parent

Continuing that thought along the line of "Simple made easy," I think ease has a simplicity all its own.

A simple language, e.g. C or lisp, simple in that their grammar is simple, are definitely less easy for the programmer, than say Go. But C is not simple as an experience, since it forces the dev to mentally complect so many concepts in order to get things done: macros, memory management, etc. Lisp is complex in a different way: metaprogamming, DSLs, and deep abstractions are the norm. So simplicity/complexity tends to be something of a whack-a-mole. It's a lower bound, much like the uncertainty principle; you can always add complexity.

Go makes a lot of choices that try to really optimize the user_complexity * language_complexity product.

comment 5y ago · link · parent

> Are vein patterns even static?

Nope. I had surgery one time to deal with a varicose vein of sorts. The key "engineering bug" was that the problem vein hits the collector vein at a 90° angle, instead of a "sliplane" (been playing too much mini motorways), causing congestion. The fix is to simply cut that connection. The body routes around it, increasing throughput through other networks. I don't think any entirely new routes were created, but I'm sure the size, geometry, and paths all changed.

Worked well for about 15 years before the primary issues resumed.

I'm yet to be convinced by the accuracy of this forensic method.

Like, it would be one thing if they could actually provide stats, bayesian analysis, p/r curves, etc.

comment 5y ago · link · parent

I wonder how effective simply piping the output of one of these cheapo jammers to a Yagi would be at disabling or simply "return to home" area denial-ing drones.

comment 5y ago · link · parent

I think also part of the problem is English semantics. The terms fact, myth, theory, evidence, research, etc., get thrown around everywhere when it comes to epistemology and peer discussion. They have different meanings in different contexts. People don't always speak with maximum precision. Take GP's comments of the form "Fact checkers said X". This is a hard stance. It also completely contradicts my experience. It would have been softened with "I remember fact checkers saying X" because that opens the door to the possibility their experience does not reflect the whole. A unique reality tunnel. But saying "X happened" opens the door for argumentative replies from anyone with a different experience.

I'm guilty of this, many people do it, maybe even most people. It's easy to lapse into the subconscious mentality that your experience reflects universal experience.

1
484950
85