8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 5y ago · link · parent
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
Edit: I said I was a bit incredulous of the claims. If true, those would be bad features.
comment 5y ago · link · parent
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
Less charitable: they don't want you to root it for various corporate reasons
comment 5y ago · link · parent
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.
comment 5y ago · link · parent
- 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
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
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
comment 5y ago · link · parent
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
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
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
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
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
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
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
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
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
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
comment 5y ago · link · parent
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
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'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.