Better HN
topnewbestaskshowjobs
Log inSign up

structural

684 karma · joined Dec 30, 2013 (12y ago) · 205 submissions

Submissions

comment 4y ago · link · parent

I strongly disagree with your viewpoint.

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

Amazon uses USPS for large cities as well (where package theft is a very big issue) - most homes have a secondary lock with access to the foyer, and postal carriers have the key. This functions just like blocks of lockable mailboxes that are found in condo/apartment complexes, but for packages.

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

Hi! Engineer who writes many high-performance GPU things. We don't get nearly as much attention since part of the job is to write language bindings so that not everyone on the team has to look at CUDA kernels directly. There's a pretty big market for it, but it's still hard/expensive to both write performant code and train people to be able to do so. A lot of it reads roughly similar to CPU math library implementations (programming in "assembler" via compiler intrinsics). I'd say any way this can be made easier without losing a ton of performance will just make more problems more affordable to solve, since the time of senior performance/optimization engineers is so limited.

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

So there's generally an optimum time of year for each step, and being a couple weeks early or late can definitely lower yield a bit. Big agriculture can stagger planting so that a smaller number of machines can be used per acre, if that's more profitable overall, even accounting for the slight reduced productivity. A group of families can't do the same thing nearly as easily if it means that one family makes a large profit (they hit the optimal time), another family makes a small profit (a week or two late), and the unlucky family possibly makes no profit at all (even later/earlier). In order for this to work, they'd also have to share profits, and at that point they've basically just merged.

comment 5y ago · link · parent

This is absolutely true. A related trend is that many family-owned farms are no longer operated by the family: they own the land and lease the farming rights to an industrial-scale operation. The difference in efficiency means that the large operator can pay almost as much for the lease as the individual farming family would realize in profit if they worked the land themselves and still have a viable business.

comment 5y ago · link · parent

They do! They make parts for old tractors (really, old tractor chassis once everything else has been replaced a few times).

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

I self-taught enough to design and build a working PCB (that passed a bunch of certification testing), including writing programs for an ARM Cortex microcontroller. Took about six months of learning and then a couple months of design/implementation to get a product that can be sold and have the fundamentals in place to make similar kinds of products much more rapidly.

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

I lived in a four-bedroom apartment with individual bedrooms (and three common rooms) my first two years and a rented house with a couple of housemates my last two. From the rendering shown, these kids will have less space by something like a factor of ten. The amount of living space per student proposed here is by no means common and really does look like a prison block.

comment 5y ago · link · parent

I live in an apartment building built in the mid 1800's. I can play music, yell at the top of my lungs and my neighbors can only hear anything if they put their ear against the wall, and even that only faintly. We tested this when we moved in so that we knew we were being good neighbors!

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

Of course, when you get to buildings that are old enough, you have several layers of solid material (brick/stone) on the exterior, as well as things like double-thickness brick interior walls as well. This doesn't do RF propagation any favors, either.

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

Do people really stare at the license plate in front of them anyways, though? It was made quite clear during driver training courses many years ago not to do this and that your glance pattern should always start and return to near the horizon (whether that be hundreds of yards in a city, or miles away on a highway).

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

It's not at all a bizarre argument in a labor shortage. Exactly what you should expect to happen is that low-value economic activity gets replaced by higher-value economic activity!

comment 5y ago · link · parent

Components for producing SDRs are impacted by the overall semiconductor shortage very significantly, too: keeping stock of what are fairly niche products is difficult when times are good, but with component lead times in the 52-80week ranges (and still increasing), there's absolutely no room to adapt to what customers might want a year from now. It really sucks for everyone.

comment 5y ago · link · parent

There's also a not insignificant number of employers that use their status as one of a very few employers in town to abuse employees, either in salary or otherwise, because the barrier to quitting is "do I want to uproot my entire family and have to move?" This definitely factors into people not wanting to move to places where there aren't not only jobs, but enough variety in employers to hedge against the worst of the worst.

comment 5y ago · link · parent

And yet, people keep coming to San Francisco, LA, and other cities because there is work there. You can't look at housing costs divorced from other costs of living, either: for example, moving to places that are "dirt cheap" in housing will likely come with a reduction in income as well as a rise in other costs. Replacing mass transit with an car-required lifestyle is expensive (and if you can't afford rent, it's somewhat likely you won't be able to afford a car, insurance, etc.).

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

The dirty secret is that shipping is a rarely profitable industry, so the "owners are too cheap" aspect is really the owners trying to go out of business as slowly as possible, hoping that times will improve in the future: if the shipping company goes out of business, it cares not one bit for the maintenance state of its fleet.

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

2754 tonnes is not really considered a large amount of material on the scale of global logistics. That's even closer to "regular weekly/monthly delivery" numbers than a large or special shipment.

comment 5y ago · link · parent

Don't forget that if any company were to do litigation completely in-house, the second they were involved in one major litigation would be the perfect time for anyone else to take the company to court -- their lawyers are already all busy!

comment 5y ago · link · parent

Yeah, but if you're not already in the job, the distribution of "teams that are currently hiring external candidates" can be quite skewed towards the worse side of things, and if you don't know this going in, you'll have a very bad time at most large organizations.

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

What's also interesting is that transportation & communication are very much easier than they were for past generations. This is also combined with shorter times that a worker stays at a single job before moving on for another opportunity. Put all this together and nobody wants to stay in a single house for 10+ years, or even in the same city for that length of time: at this point, buying a house would be counterproductive -- even if you could afford it -- because the transaction costs eat you alive.

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

One of the issues is that the contracts are overly specific, can be extraordinarily difficult to change, and are not written by experts in the job to be done. There's always tension between "you need to be absolutely specific in order to stop people from cutting corners like crazy for profit" and "your one-size-fits-all instructions will always run into a weird special case where an expert can could just handle it without any extra effort". If they aren't permitted to, by the contract, the job can sit undone for months waiting for the organizations' legal departments to argue about it.

comment 5y ago · link · parent

Yep, we're hearing 52week lead times on pretty much all microcontrollers at the moment, with more esoteric parts being... somewhat more than that.

A year ago you could buy 10k+ units of most common parts -- in stock -- from each of the major distributors.

comment 5y ago · link · parent

The Artix-7 is an excellent series of devices for learning how to work with PCIe. You're limited to Gen2 speeds, but that's not an issue for developing most applications. One thing to keep in mind is that "Artix 7" is an entire product line of devices, not a single chip -- there's a spread of "amount of logic resources" with prices to match.

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 is absolutely standard practice for this to happen. At contract completion, the contractor must destroy or return all classified materials: these sorts of designs would certainly be included.

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

You absolutely do assume that that network is hostile/compromised. There are a number of other networks in other places where more important communications are done. It's a giant PITA, and a lot of stuff leaks from Congress because most people believe that they are too important to have to keep things secure.

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

Their geocoding seems to work decently enough for street addresses from what I've seen, which is what it's technically advertised to do. It doesn't have a Google-sized database of business entities, so I'm not surprised it doesn't work for any POI less significant than a major landmark (i.e. "city hall", "the statue of liberty", etc.)

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

It's somewhat economics of scale, but also that small/cheap FPGAs are sized rather closer to what you'd expect in a microcontroller (and that is quite sufficient for many designs).

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

Read the BSD license. There's nothing preventing the code being redistributed in another product (in this case, Mapbox JS v2) under any license terms whatsoever, as long as the copyright holders are appropriately credited.

comment 6y ago · link · parent

It looks like at least one company has started to produce products that tie together the radio <-> FPGA <-> GPU compute pipeline for SDR using cuSignal and these Jetson modules: https://www.crowdsupply.com/deepwave-digital/air-t

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

I can't disagree more strongly about this. Many, many times I'm trying to understand a codebase, and what I have is that codebase, not the dozens of dependencies involved, and not a full development/build environment. I may not even know what, if any, IDE the original developers used.

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.

1234567