Better HN
topnewbestaskshowjobs
Log inSign up

coderjames

622 karma · joined Nov 14, 2013 (13y ago) · 143 submissions

Senior Aerospace Software Engineer building the road to space. If I ship bugs, people might literally die. If you want to help build the road to space, let's talk.
Submissions

comment 11y ago · link · parent

I emailed him the link and a link to this submission.

His response was, "Lordy, people really do have too much time on their hands. Thanks, though. Consider me amused."

comment 11y ago · link · parent

Very cool! I actually work with the original programmer at my day job. I'll have to forward this to him.

comment 11y ago · link · parent

Protobuf has somewhat recently added the 'oneof' feature which tries to deal with these union types.

The one downside I found when trying to use it was that the 3rd-party C# Protobuf libraries didn't yet support it.

See: https://developers.google.com/protocol-buffers/docs/proto#on...

comment 11y ago · link · parent

Your description of C#/.NET sounds like it might get me to take another look at C# in the future.

I learned Windows programming on-the-job using Delphi and then thought I should investigate a "more common" C++ environment (I already knew console-based C++). Learning that _Visual_ C++ had no similar RAD environment was really shocking. My resource editor isn't attached to an an automatic code generator? Say what?

After that experience with Visual C++, I'd assumed Microsoft did roughly the same thing with "Visual C#" and never gave it a more than cursory look. I also had the fear that this new .NET thing would be yet another technology they hype then deprecate. What's the official Windows GUI framework this month? Is it Win32 Or maybe MFC? Or was it WPF or WinForms or some new XAML thing? (Sorry, went off on a tangent there...)

comment 11y ago · link · parent

So you wrote a worm and are publicizing that fact?

Where can we download the source so we can develop firewall rules to block it?

comment 11y ago · link · parent

I think the article might be mistaken about one point: "For one thing, the Boeing approach is going out of style or has mostly gone out of style, according to SE poster Uri Dekel (handle: Uri), a Google software engineer."

It absolutely has not gone out of style in avionics software engineering. As a person who writes software for avionics, I can say that extensive design reviews at every step combined with rigorous testing is exactly how we build software. That's how its done at every avionics software company I've ever worked at (3 so far). Formal methods are generally still too cutting-edge and complicated for many people in this industry.

So maybe Google doesn't bother with design reviews, but those of us writing life-or-death software definitely do.

comment 11y ago · link · parent

I'm clearly missing something important because otherwise somebody would have built this already, but instead of using the fans for levitation as proposed, why not keep using the magnets?

I'm imagining a tube with (8?) magnets equally-spaced around the perimeter so that the carriage inside automatically stays centered in the tube. We already know how to toggle the magnets to produce forward motion (see maglev trains). Could still use the partial-vacuum to keep drag down. And you remove the single-point failure mechanisms of the fans on the carriage and minor misalignment of tube segments.

comment 11y ago · link · parent

ASN.1 is used as one protocol in the next-gen air traffic control systems currently being deployed in Europe. The relevant aerospace standards spell out a specific subset which helps with getting it correct. Only the single Packed Encoding Rules (PER) encoding is used, for example.

comment 11y ago · link · parent

Haha, that's great! We have that situation in our main product line where I work.

At the center of the system is 30 year old Z8000 assembly code that gets run through a translator during the build process to produce C code which gets compiled and linked into the (PowerPC) executable.

There aren't that many folks left that know Z8K assembly, so not many people can begin to wade into that code and fix long-standing bugs. Everyone else builds wrappers so they don't have to actually get too close to the translated assembly code. But since they don't quite understand the code they're avoiding, these wrappers tend to be fragile and prone to odd corner-case bugs themselves.

comment 11y ago · link · parent

We're actually integrating an OSI-based network stack into our avionics datalink product at work right now.

The next generation of digital air traffic control between aircraft and the ground towers is an OSI stack. Proprietary application in layer 7 and avionics-specific layers 2 and 1, but everything in between is bog-standard OSI (TP4 & IDRP, IS-IS & CLNP, 8208).

Interesting protocol suite, and it will be keeping aircraft going the right direction for the next 25+ years.

comment 11y ago · link · parent

Probably because of beauracracy and paperwork. The 'random person' both knew how and was willing to deal with the hassle of the city's tax auction. The owner probably didn't know they could, didn't know how, was unwilling, or otherwise unable. Arbitrage works :-)

comment 12y ago · link · parent

I've been wanting to learn JavaScript (and CoffeeScript), but didn't have any tasks with which to practice. This should be awesome for that. Looking forward to it!

comment 12y ago · link · parent

I would tend to agree with you, but from what I recall Linus' policy is user-space breaking changes are kernel bugs.

comment 12y ago · link · parent

I've actually been thinking about doing exactly this for a 68K-based computer I'm building. This will be a big help! Awesome project.

comment 12y ago · link · parent

I also have this problem and I don't even use Ghostery. Just plain vanilla Firefox 32.0.3 on Windows 7 with Cookie Monster and AdBlock Plus.

Went so far as to allow cookies because that fouls up a lot of sites and this looks really interesting, but still no dice. I'll see if updating to 33.0.2 helps.

EDIT: Nope. Clicking any button still has no effect.

comment 12y ago · link · parent

So police kept showing up. Did any of that policing actually solve anything? Sounds like a ridiculously high amount of crime for one person in two years.

comment 12y ago · link · parent

It sounds like your current MacBook Pro is already serving your Windows needs quite well.

Why not just buy an updated MacBook Pro, wipe out OS X and only run Windows on it?

comment 12y ago · link · parent

Wouldn't flashing your hardware with another vendor's firmware, thereby distributing said firmware, be copyright infringement?

comment 12y ago · link · parent

I use Catch over UnitTest++ because I found it first and it was dead simple to get started with.

We don't do unit-testing as part of our official development process where I work, so I was looking for something that I could quickly try out and get started with in my spare moments. I read about several frameworks and Catch seemed to fit the bill best.

Looking over the UnitTest++ web site just now it appears to be nearly as easy as Catch, so if I had found it first I probably would have given it a try.

For those not currently doing any unit testing who want to get a feel for what it is all about, I highly recommend Catch as a "my first unit testing framework."

comment 12y ago · link · parent

I'm building a robot to drag around a ribbon toy for my cats. It supports either autonomous motion or receiving commands from a PC via a wireless link.

comment 12y ago · link · parent

[disclaimer: still learning Rust]

I believe it actually means that y can be made to reference something other than x.

  let x = 5
  let mut y = &x
  let i = 13
  y = &i
This is similar to C++'s const-pointers and pointers-to-consts, where either a pointer cannot be made to point at something different or the pointer cannot be used to change what it points at.

comment 12y ago · link · parent

I have used it and I have to agree with the grandparent. It is probably one of the worst IDEs I have had to use. Bloated, slow, and in my way even on a modern multicore machine with 8+ gigs of memory.

Of the IDEs I have worked in (Turbo C++ v3.0, Borland C++ v3.1, NetBeans, Eclipse, Rubymine, DrScheme, Turbo Delphi Explorer, RAD Studio XE5, EiffelStudio, GNAT Pro, Visual Studio 6, 2010 and 2013, along with several embedded C environments), Visual Studio is my least favorite. For C++ development on Windows I prefer Eclipse or SublimeText for editing, build using the command line, and debug in WinDbg in order to avoid the awfulness that is the Visual Studio GUI.

comment 13y ago · link · parent

You might want to take another look at Delphi, as the recent versions (XE4 and XE5) have added cross-platform support for OSX and Android (at least). While I still have to develop on Windows, I can easily produce native static OSX binaries and Windows binaries from one source tree and with careful selection of UI components also an Android app.
12345