1,284 karma · joined Oct 6, 2011 (15y ago) · 430 submissions
comment 8y ago · link · parent
"VLAs as [...] function arguments" sounds like it would just be normal passing of arrays. It's not clear that VLAs have any effect here.
"VLAs as struct members [...]" is still not clearly an ABI issue: if they existed, the types would still be confined to the function they are declared in, and thus would not affect ABI.
comment 8y ago · link · parent
If the default channels in these were GMRS, despite the lack of legality in their use on GMRS, I expect there would be much less activity in responding to the problem.
comment 8y ago · link · parent
It may be more accurate to state that "msvc is probably the only C compiler that didn't bother to support it"?
(Though it would be interesting to perform a more complete survey of C compilers to determine how widely supported VLAs are)
comment 8y ago · link · parent
IMO, the reality with C is that one needs to be aware of input, whether using VLAs, recursion, or any number of other mechanisms (overflowing calculated values passed to malloc, etc).
It isn't clear that VLAs are a significant departure from what C already provides in the way of unsafety.
comment 8y ago · link · parent
Does anyone have a link to the changes to FreeRTOS & use of libclang mentioned in the article?
NXP thread: https://community.nxp.com/thread/459977
comment 8y ago · link · parent
It can be seen inside the template project here:
https://phabricator.kde.org/source/rust-qt-binding-generator...
comment 8y ago · link · parent
It's reasonable that the UK Government may not agree if the appearance is bad and would cause political backlash. It's also possible that they're harder to lean on than as smaller, weaker, lower GDP government.
I mean, it could be as simple as "they won't agree, but other guys might". Maybe someone in US Gov has a better relationship with the person/people in Sweden that would need to approve things. Maybe someone owes someone else a favor.
All of these are reasonable possibilities. Governments aren't 1 dimensional.
comment 8y ago · link · parent
I'm looking forward to that story.
comment 8y ago · link · parent
You may not realize it, but you've presented a false dichotomy here.
The alternate to JSON isn't "custom binary", it's standardized binary encodings that allow the same flexibility (or additional flexibility) compared to JSON. Some examples include cbor & msgpack.
>> Write programs to handle text streams, because that is a universal interface.
cryptsetup manipulates block devices. I don't think that line can or should really be applied to something that is fairly similar to a filesystem's on-disk format.
comment 9y ago · link · parent
The piece that may still be missing is the inclusion of source code in debug packages, which is necessary to get any context for a debug session (it is not sufficient to seek out and clone random git repos because of versioning & patching differences).
But ideally, there would be a `-debug` package for every package in arch's repos, and one would not need to build them manually when debug symbols are needed. Arch does not have this.
comment 9y ago · link · parent
Right now avoiding that in monero is difficult. Subaddresses (as linked above) solve some of that, but as there is still a linear time scan increase, I wonder how prevalent their use will be. Will people create a new address for each receive they do? Maybe, maybe not.
comment 9y ago · link · parent
Monero certainly has lots of things that make me excited about it, but it seems there is a downside:
To recieve a payment, 'A' must tell the sender ('B') A's recieve address. Now, this recieve address is never encoded in the block chain, but it is known to everyone who sends 'A' coins.
If 'B' and others who know 'A's recieve address keep track of it and the coins they send, some privacy is not preserved.
Bitcoin & many other crypto curencies "solve" this to some extent by using Hierarchical Deterministic wallets ("HD wallets") were a single secret plus a deterministic "count" is used to generate multiple "accounts", each with it's own receive address.
The problem is that it isn't clear to me Monero has any HD wallet implementations, and I'm not familiar enough with monero to say whether generating lots of different accounts would even be feasible.
Can anyone with more knowledge chime in here?
1: https://github.com/b-g-goodell/research-lab/blob/master/publ...
comment 9y ago · link · parent
With a choice, when reading every platform has a conditional swap rather than some platforms having an unconditional swap (and the others having no swap at all).
A choice will only be beneficial if writes happen more often than reads (as providing a choice means that platforms can do no swapping on write). This can only be the case if some written data is never read.
Also, conditionals in general are not good from a performance perspective, so even more writes than reads doesn't make it clearly better to have a choice.
comment 9y ago · link · parent
The cost of Apollo program in 1973 was reported as ~$25 billion. In 2016 dollars, ~$135 billion. The Apollo program made 6 manned landings (I'm going to ignore non-landing missions as we're talking about rovers & consider them part of the development cost for the program).
The curiosity mission was reported as costing $2.5 billion in 2011 ($2.6 billion in 2016 dollars).
So with some really bad math (as noted earlier):
- dollars per manned moon mission = 135/6 = 22.5 billion
- dollars per unmanned mars mission = 2.6 billion
- For the cost of 1 manned moon mission, we could have ~8 (22.5/2.6) unmanned mars missions.
comment 9y ago · link · parent
If we spent as much on a space probe (or probes) as on a manned mission, I imagine there would be enough weight capacity to make the unmanned rover (or rovers) faster, if that was considered worthwhile.
Also consider that the total distance traveled by a unmanned rover over the course of the mission already exceeds that of manned missions. Wikipedia links to a nice chart from NASA [1].
Distance traveled and speed to travel that distance isn't necessarily connected to the value of a rover.
As to "all that new technology [we gain from manned exploration] would probably make it easier to later send rovers all over the solar system", frankly, we could just develop the new tech for unmanned exploration directly. Manned missions primarily serve as PR, except when we actually need careful manipulation, like repairing the Hubble, something that has almost continuously been pushed off to the point where it likely makes sense just to replace it.
1: https://en.wikipedia.org/wiki/Lunar_Roving_Vehicle#/media/Fi...
comment 9y ago · link · parent
While not the same, I'm reminded of the issue with etherium addresses where they've (after initially having no extra checking) started using mixed case to provide a checksum to detect incorrect entries. Otherwise, it's really easy to send coins to a very slightly different address due to a typo.
With Saicoin, it seems like just adding 1 more word could allow correction of mistakes like these. (And you'd end up with a round 30 words :).