1,549 karma · joined Dec 5, 2012 (13y ago) · 595 submissions
comment 8y ago · link · parent
(It writes to a temporary file, and then atomically renames it to the final location. Whereas if sed expr src > dst is killed, dst may be corrupt. You'd need to handle temporary file management yourself if your script needs to be reliable.)
comment 8y ago · link · parent
It is not clear that if a similar number of people had been organized in another way, the wall would not have fallen.
comment 9y ago · link · parent
2. Given that todays secure overlay networks generally offer extremely bad performance in the Mbit region compared to using the underlay where 10G uplinks are becoming widespread for servers, and the extra hops increase latency, do you think secure overlays will ever be near enough to underlay speed to become widely used? Do you have experience how well ORCHID scales up? And out?
[edit: Don't mean to sound too harsh. I am very glad you're doing work in this area.]
comment 9y ago · link · parent
My favorite example: Overdoing the short functions thing. I've seen this a lot. Unsurprisingly, considering that for most devs, when you ask them what makes good code, "short functions" seems to be the first thing that comes to mind.
Splitting code into extremely short functions has a few disadvantages too: a) in what order they're called is not immediately clear, b) where they can be called from is not immediately clear, c) going up/down the stack can make it harder to follow when debugging interactively. d) It increases the LOC and noise. And e) especially in OOP languages, short methods make it more tempting to turn variables into attributes to avoid passing them around explicitly (bad due to longer lifetime).
Splitting functions should only be done if it makes sense semantically. Each function should make sense on its own. If some logic is highly cohesive (e.g. because it implements a specific algorithm), not independently reusable, and it's subblocks only make sense in one order, and it all fits on a few screenfuls, it might make sense to keep it in one longer function instead of dividing it into fairly arbitrary chunks.
comment 9y ago · link · parent
Spotify actually frees me from the "what music do I hear in the background" question, manually rearranging playlists, acquiring music and, worst of all, manually keeping my collection tagged. Before I had Spotify, I wasted evenings tagging everything with Picard...
With Spotify, you just give it a starting point, start "song radio" and it'll keep playing and choosing next tracks. You can easily and very comfortably get through the day with only a play/pause hotkey and a next track hotkey. As a bonus, it just carries over between work, phone and home.
comment 9y ago · link · parent
This means either having separate 32bit libraries (typical for closed source applications shipping together with their libraries) or having multiarch libraries (as modern linux distros do).
comment 9y ago · link · parent
The legitimate way would be to take part in the development and convince based on technical reasons. If people disagree with you, consider that you might be wrong. If you think you're right anyway, fork it, and see if /other/ people agree with you. Chances are they won't.
The people actually maintaining all the distros didn't all switch to systemd within a few years for no reason.
comment 9y ago · link · parent
Try it and see: https://play.golang.org/p/1ozFWDj15a
comment 9y ago · link · parent
(Obviously, the state of the art answer to your technical questions is the double ratchet algorithm.)
comment 9y ago · link · parent
Good luck doing a build with an overall 10W consumption target with x86 and what is essentially desktop HW, especially if it should be affordable (relative to a ~250€ commercial solution) and maintainable (no, no custom kernels with weird patchsets that rot away in 6 months, and having to recompile the world).
We have used PCEngine boards. They're fine as network appliances. But even the latest ones only have 1 SATA port (fine, 2 if you count the mSATA port).
comment 9y ago · link · parent
I just wish they'd have gone for a standard uATX form factor for compatibility with a professional case (and 3.5" disks). It's ironical that the "open hardware" project has to come up with a proprietary form factor :/
I also wish they had ECC RAM and enough of it for ZFS, but I know that is technically impossible with the price and power constraints.
comment 9y ago · link · parent
https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux#Versi...
Windows Vista was released in 2007, so I'd say it's fine.
comment 9y ago · link · parent
Let's avoid hollow arguments to authority that preclude any interesting criticism or discussion. Unix has its fair share of flaws.
> it's important when changes in presentation take effect. [...] They are just not independent streams, period.
Not independent, but separate. Your argument would also apply to stdout and stderr - these are separate even though not independent.
ioctls could very well apply to a specific position in the data stream instead of being immediate. And if you don't like ioctls, there could well be a third output fd instead. In that case, the synchronization problem could be solved with a "barrier" feature.
Can we at least agree that the actual terminal protocol situation as it is now quite frankly sucks? The poor documentation and completely inconsistent implementations have caused me quite some stress.
comment 9y ago · link · parent
As an example on how to do it right, consider how commands like "git diff" determine whether to paginate/colorize their output: they call the isatty(fd) stdlib function on stdout, which uses ioctl TIOCGETA to get terminal properties. Iff that fails, there's no TTY on the other end of the fd and "git diff" just writes the raw output.
If only there even was a clean, consistently implemented, well-documented protocol... but there is not - few tools properly escape their output, and you can't get much right without a terminfo database, even with you can't get consistent results, and the protocol is a mess.