Better HN
topnewbestaskshowjobs
Log inSign up

codys

1,284 karma · joined Oct 6, 2011 (15y ago) · 430 submissions

podcast-again-1k@icloud.com
Submissions

comment 8y ago · link · parent

The comment you're replying to contains:

> Someone this year made a bot that did it in about 5 minutes.

It's also the case that it's plausible one can interrupt & resume the sequence (at the cost of 4 extra button presses per interruption).

comment 8y ago · link · parent

Can you provide a reference to both of those affecting _ABI_?

"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

More than just "using it for GMRS service": the real issue is that most purchasers of these radios leave the channel configuration in the shipped default, which tends to overlap with a bunch of public safety and commercial frequencies.

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

pcc, tcc, and icc all appear to support variable length arrays.

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

> you have full control on the stack usage, unless you have a user controlled recursion

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

_theoretically_ a C implementation could track the maximum stack size it has allocated, detect would be overflows, and report them.

guard pages are one mechanism for doing that.

comment 8y ago · link · parent

Though that is true of a lot of elements of C.

comment 8y ago · link · parent

> You can't expose a VLA's size through the ABI, for instance.

Can you clarify what you mean by this? It's not clear to me what it would even mean to expose a VLA in the ABI: they are function scoped and as a result it doesn't seem like they could escape to the ABI.

comment 8y ago · link · parent

Reading the NXP thread, it is not yet clear that NXP considers this errata, only that it is something that is desirable to avoid.

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

`src/main.cpp` is not a _generated_ C++ file.

It can be seen inside the template project here:

https://phabricator.kde.org/source/rust-qt-binding-generator...

comment 8y ago · link · parent

Politics?

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

> As for how this was all handled by the companies involved, well this could be described as a textbook example of how NOT to interact with the Linux kernel community properly. The people and companies involved know what happened, and I’m sure it will all come out eventually

I'm looking forward to that story.

comment 8y ago · link · parent

> several data formats using custom binary and several data formats using JSON

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 8y ago · link · parent

> JSON text format for metadata

It seems like it could be better to use some easier to parse binary format that allows the same flexibility that json does, like cbor/msgpack/bson.

Using JSON here is a very strange choice.

comment 9y ago · link · parent

It is, in linux distros at large. Arch, however, does not publish (or even generate) those debug files (which contain the debug info & symbols that were stripped out).

comment 9y ago · link · parent

If you build packages yourself, one can either include debug info, or generate a split package that includes debug info.

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

Sure, I'm not contending that the information is exposed in the blockchain, I'm saying that third parties that keep logs of their sends can collude at a later time to produce a more complete picture of the transactions sent to an individual.

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

edit: I just found a paper [1] which talks about this issue and a potential solution.

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

It might be worthwhile mentioning that at some point in the past, HN ran on 1 server (and might still do so).

https://news.ycombinator.com/item?id=5229522

comment 9y ago · link · parent

> There's at least one unpatched and there are bound to be more.

References, please.

comment 9y ago · link · parent

"1 instruction on x86" doesn't really tell us much about the cost of executing that instruction. x86 has a wide variety of instructions that take varying processor resources to execute.

comment 9y ago · link · parent

A choice is the often _worst_ possible solution, assuming it is encoded into the format (which it may not be in this case).

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

> Poland is very much its own cultural axis since last election

Election results are largely a reaction to existing "cultural" state. I don't think it's accurate to consider them to be changing it (think "effect does not imply cause").

comment 9y ago · link · parent

Not all mechanical keyboard switches have feedback (audio or tactile) when they actuate, making some more difficult to use than others (for example, cherry mx reds, referred to as "linear" provide zero feedback).

What switches are you using?

comment 9y ago · link · parent

It's fairly hard to figure this out. What follows is a really bad comparison between Apollo & Curiosity, which completely ignores tech advancement, the difference between a moon flight and a mars flight, the length of time for each mission, the amount of data collected, and a whole lot of other stuff.

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

> Space probes may be cheap but they are slooooowwww

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

Ya, it seems like trying to choose words that are hard to mistake for each other (high lev distance, and perhaps also considering letter similarity) would be a very good idea for selecting a dictionary like this.

I wonder what the original process was?

comment 9y ago · link · parent

The need for embedded some form of error correcting codes into readable keys like these is a really good point.

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 :).

comment 9y ago · link · parent

All the intel docs use intel syntax, and for some instructions converting between the 2 syntax forms isn't immediately obvious.
1
91011
15