684 karma · joined Dec 30, 2013 (12y ago) · 205 submissions
comment 4y ago · link · parent
If you need to support plugging in new hardware to a very niche embedded architecture, you will still have many options. These range the gamut from writing a driver based on the reference driver for your environment, to requesting/funding the development of such C driver from the vendor, to funding support for your hardware architecture in Rust/LLVM. Yes, all of these cost time/money. Maintenance of software ports to various architectures is very much not zero-cost, and assuming it is will eventually bite you or your business hard.
As another thought experiment: let's say the development of drivers in Rust is less expensive (either in $$$ spent on engineer time, in $$$ lost to bugs and security issues, or any other valuation you choose. If you/your community of people who desire new hardware to be supported by your embedded architecture can not cover this difference in cost (to make it worthwhile for drivers to be written for you), nor can afford to develop and maintain support for your architecture in Rust (so that you can benefit from the development work done by the vendor), nor can afford to upgrade to a newer hardware platform (which solves the problem completely), then your business is already screwed and you just don't realize it yet.
That said, this is the responsible way to introduce Rust code to the kernel - if this had be done by limiting future releases of Linux to only those supported by Rust, I'd be out with my pitchfork too, because that's something that really needs to be planned very carefully. As long as stable kernel releases continue to exist that support the full set of architectures, everyone's existing code will keep working, receive security fixes, etc. This is fine.
comment 4y ago · link · parent
Needless to say, the overnight/next day delivery options that you'll see for suburban neighborhoods are nonexistent in many other places.
comment 5y ago · link · parent
I'd argue that this project will be successful if you can write at least a few primitives of Thrust-like library in it: it'll give reasonably-sized problems to tackle, a production implementation to compare against for both testing and performance benchmarking, and demonstrate that the project has the basic functionality (optimized primitives like parallel sums/reductions are building blocks for a lot of useful things).
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
As far as why doesn't a new tractor manufacturer start up, they have to compete with a few things: first, the market for old tractors and parts (if they are repairable basically forever and the amount of land used by agriculture isn't changing, this is not a growth market). Worse, it's much more difficult to design a small engine for sale that is both reliable and will pass current environmental regulations. This is a major barrier to entry that didn't exist decades ago.
So if you're a startup in the ag space, it makes eminently more sense to make small parts for someone else's platform, which is why you see companies doing things like deploying GPS, cameras, lidar, datalogging systems. There, the market opportunity is "all tractors could benefit from this", the competition is initially "other small companies", the exit strategy is "get purchased by a large manufacturer who would rather buy than develop the tech themselves", and the regulatory environment is much more friendly.
comment 5y ago · link · parent
It's very doable with dedicated study and I'd argue it's one of the best ways to get your design ability to rise to the level of being able to build something from scratch, without reference to other code / searching google for answers.
comment 5y ago · link · parent
comment 5y ago · link · parent
The culprit is cheap, stick-built construction that has a useful lifetime measured in a couple decades, not a couple centuries. [And if we, as a society, say with a straight face that we can't afford to build that anymore... isn't that a sign of how much poorer we all are collectively?]
comment 5y ago · link · parent
My home was built in 1830 and 2.4Ghz wifi is strictly line of sight within the building, and cellular phones must be kept near windows on the side of the building facing the nearest cell tower to function.
And this isn't in a rural area either, this is life in a brownstone in the middle of a large city...
comment 5y ago · link · parent
I've always had the opposite problem, if I'm not maintaining situational awareness to the horizon, I'll inevitably fall asleep after an hour or two out of sheer boredom. I prefer to drive long distances in manual-transmission vehicles (there's more to do!), and commercial vehicles with loads requiring careful management of engine RPM are even better. Those I can drive for 10-12 hours in a day without issue. I never saw myself as anything other than an ordinary driver.
In my case, a Tesla autopilot is the worst possible compromise. It removes enough attention requirements that it feels much harder to stay attentive, but without automating the process completely. Other people I've talked to that operate large pieces of mechanical equipment have often said similar things about automation that it's best to either be a) fully manual or b) fully automated for some duration of time.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Additionally, an important factor in most of these cases is that they have some amount of debt, perhaps significant. So even if they could be marginally better off if they reduce income by some and reduce costs by enough where they can afford rent in a cheaper place, their existing debt doesn't shrink and becomes effectively unpayable over any period of time.
In short, yes, the real proposal is to build so much new housing that rent drops by over a thousand a month. There's very few places in the country where that wouldn't be a great idea, not just in California... even those "dirt cheap places to live in this country" aren't dirt cheap anymore, things have changed quite a bit in the past few years.
comment 5y ago · link · parent
So what do you do if you're a country that doesn't want this to happen? Well, we tried regulating how international shippers operate, and it turns out that it's expensive to do that. So we ended up with flags of convenience.
It'd be easy to think that you could say "well, you need to be well-maintained, etc., etc., in order to dock at and use our country's ports" -- but that doesn't work either. There's no global inspection regime to make sure the ship is in good repair when it leaves the last port (and it can break down on the passage so that the only place it can be repaired to move again is at the same port you'd like to prevent it from using).
You also can't be too heavy-handed about the whole thing, because shipping is pretty essential to the operation of industrialized countries, and if too many shippers were to be driven out of business the result might likely be worse than the current status quo.
comment 5y ago · link · parent
A successful strategy is quite frequently to treat your first team at a company as just the second phase of an interview to get into one of the better teams in the company. Depends on the company, to be sure, but I've definitely seen many instances of "we're a good team, we know it, we'll happily poach good engineers from any team we like". It helps that the good engineers are going to be unhappy with their current team and looking to make the switch, anyways.
If you don't switch teams within your first year or so, it usually means you a) got very lucky at random, b) got into a good team because you knew someone internally with good info and were able to short-circuit the process, or c) you failed to network/interview well enough internally to move up, and you should probably either be okay with a dumpster fire or move to another company.
comment 5y ago · link · parent
For these reasons, a lot of us younger generation folks actually value a high-quality rental property more than buying exactly that same house. [Yes, sure, you buy the house and you'll eventually pay it off, but you'd be surprised how many people don't believe they will be able to afford to retire at all, much less accumulate any wealth whatsoever.]
comment 5y ago · link · parent
comment 5y ago · link · parent
Also, the whole Artix 7 line is supported under the free licensing, so you can actually get started and learn a lot even before you have a development board. You should do this! You'll find that you can develop your design and test it in simulation before you ever touch hardware, and this also helps you plan for exactly what hardware you'll need...
comment 5y ago · link · parent
It's pretty interesting, but a lot of this stuff is structured specifically so that the contractor organization doesn't retain knowledge that it's "not supposed to have", as wasteful as that ends up being. Even stuff like a list of personnel who worked on a project or production line might be included... so that a few years after the project is completed, the management of the contractor might not even be able to figure out who to ask, because they've destroyed even their knowledge of the list of people who worked on the component's design and manufacturing.
comment 5y ago · link · parent
Being in Congress is not an automatic ticket to having all the country's secrets on your desktop, and things actually are compartmented quite heavily when necessary.
comment 5y ago · link · parent
Pretty common to use Google to look up an entity (to either get address or full geocoding results) and then Mapbox to do the display though.
comment 5y ago · link · parent
Supporting PCIe and other high-speed interfaces (10Gb ethernet and beyond, etc) requires physical transceivers which look a whole lot more like "wireless communications over a PCB trace" and less like the traditional "drive a digital signal over a GPIO pin". These interfaces also typically drive requirements for data buffering as well as higher clock rates: all of these things increase size and cost.
That said, you can get basic chips that will do this for much less than "thousands of dollars" - Xilinx's Artix line is optimized for low cost + relatively high numbers of transceivers compared to the number of logic cells. You'd probably be interested in a development board something like the PicoEVB, which is in the USD $200 range and provides a M.2 form factor / PCIe interface to a FPGA. The actual FPGA itself to do this can be had for less than this... but the cost of the PCB, connectors, adding DDR memory, etc., etc., do start to add up.
comment 6y ago · link · parent
It's pretty neat stuff to think about DSP on hundreds of MHz of bandwidth being something that you can do in software these days. I remember when that was firmly in the realm of "don't bother unless you want to design a custom ASIC" and now it's starting to become even hobbyist-accessible.
comment 6y ago · link · parent
There's also very common sources of bugs when functions take multiple arguments of same (or sadly in some languages, implicitly convertible) types. With named arguments in complex functions, you can sit down, read the code, and spot the bugs. Happens frequently enough in code review that we have a category for it. Without named parameters here, every single function call becomes a game of "mouse over the parameter in the IDE". Moreover, "you can just read the docs inline in the IDE" also causes people to not think much about naming things, which also harms maintainability.
It's a real issue in large, long-lived codebases that may not seem like much in smaller projects.