Better HN
topnewbestaskshowjobs
Log inSign up

structural

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

Submissions

comment 6y ago · link · parent

Tegra started out as their mobile chip, but has evolved into their robotics/automotive/industrial-SoC platform through the Jetson series of modules which are alive and well.

[Sidenote: this has resulted in the hilariousness of taking an Android kernel and development infrastructure and them slowly trying to make it back into something that looks like a normal Linux system. Their board support package is a hot mess, but gets used in real products because the hardware actually works well. A software company NVidia is not.]

comment 6y ago · link · parent

I think the difference is that you're using the language as a prototyping/design language: there, shortening the feedback loop is absolutely critical. There are lots of things that are not prototyping though - when I touch a graphical project I typically am working from a diagram that specifies all the color values and has a layout labeled with dimensions.

For a contrast, I don't notice compile times at all in just about any language for the most part: when you reach the "few million lines of code" size, there's no language that is going to be instant; and for embedded/systems work, committing a change can involve things like creating builds for N different architectures and running a test suite that may have to control hardware [run times of the test suite are measured in hours to days]. At this scale, anything that the compiler catches, even if it takes an hour to compile, saves an order of magnitude more time later in the process.

It's legitimately a hard problem to design a language that works well for both projects in the few tens of thousands of lines of code size -- i.e. tossing together a quick prototype -- and scales to millions of lines of code or larger.

comment 6y ago · link · parent

What's been your overall experience with using Vulkan shaders for compute? Are there basic primitives that are missing from shading languages and/or have you found any impedence mismatches between writing shaders vs. how you might describe the same algorithms in other languages?

comment 6y ago · link · parent

You also get the benefit of hiring several devs that already trust one another and have experience working together without stepping on each other's toes. That's where you can look at the product they have already developed and for what effort, and with some diligence, hire the teams that aren't dysfunctional. Or at least that's the idea.

comment 6y ago · link · parent

You don't even need to do this: qemu support for executing arm64 binaries is fairly good, so you can just run the builds on your beefy x86 server anyways.

comment 6y ago · link · parent

I think most of your issues are equating "QEMU == vmware player" or something like this. It's really not: as a matter of fact, QEMU is just a processor emulator, in software. It's not a full-operating-system VM environment at all and can be (and is) used for things like running a single binary without virtualization.

Why is this confusing? What you're really looking for is KVM, which -is- a hypervisor that uses the processor's virtualization instructions to implement a complete virtual machine. And then QEMU has a backend, for x86/x86_64, that uses KVM to accelerate its processor virtualization (and I believe some hardware support as well).

Using KVM through QEMU at least gives you a command line interface to do things instead of "write a C program to talk to the kernel API", but this is still far from the level of a tool that a desktop user would want to use. QEMU+KVM is basically at the level of one of the random barely-documented executables that you'd see in the installation of a VM software package.

So what should you use here? The next layer up is libvirt, which provides a system-level daemon to talk to (so you're not just running an emulator from a terminal that exits when you close the terminal) and a command shell & configuration files for defining machines, networks, storage, and so on. Still not a great UX, but at least now you're at the level of being able to define and run a machine.

Many users are going to manage these things through a wizard-based or graphical workflow instead of a CLI, so there's applications like Boxes that's built into GNOME (https://wiki.gnome.org/Apps/Boxes) or virt-manager (https://virt-manager.org/) which is desktop-agnostic. Both of these also help with establishing a graphical interface to the virtual machine itself, if necessary.

comment 6y ago · link · parent

Two important aspects of being a wiki replacement, especially at a larger scale:

- Group ownership of particular topics or sections of topics. This allows for things like "anyone on the team responsible for project X can edit/moderate things regarding their project"

- History of edits made to topics, linked to author. It's incredibly valuable organizationally to be able to see the evolution of knowledge, as well as provides protection from content deletion, both accidental and malicious.

comment 6y ago · link · parent

Quaternions are also quite a bit more efficient (both in flops especially when composing rotations frequently) as well as storage space (4 values in a quaternion vs. 9 in a 3D rotation matrix).

It's interesting to compare disciplines, since I've never worked on a game engine but have done a lot of simulation of physical systems: there, quaternions have been standard for at least fifteen years, and I've seen geometric algebra frequently for about the past five.

Interestingly, where we saw most gains from thinking about geometric algebra wasn't in simple rotations, but when starting to look at things like computing kinematic chains composed of dozens of joints: Now we're at 4x4 matrices to store each transformation, which is the traditional way and works well. From this, some seriously deranged mathematicians introduced the concept of an eight-element dual quaternion (essentially, pair of quaternions specially constructed) that can represent this. Again, super efficient, but even more intractable for newcomers than quaternions. At this point, starting to express both concepts in terms of geometric algebra has been able to keep most of the performance improvements as well as only having to teach one concept.

When I left that position a year ago, we were starting to see recent graduates that already had pre-exposure to geometric algebra concepts before even starting to work on the codebase.

comment 6y ago · link · parent

Not everyone's development environment is connected to the Internet.

Additionally, trying to compile the project from source is extremely painful compared to most projects: it's not really possible in any obvious way to duplicate the output of the binary distribution without looking at the guts of Qt's continuous integration environment for weeks on end.

comment 6y ago · link · parent

Hetzner is about 100ms from the US east coast, which is doable. Closer to 200-225ms from the US west coast, which takes quite a bit more effort to deliver a good user experience. You'd probably want a secondary west coast datacenter/CDN.

That said, architecting your application so that all the small, latency-sensitive data was served from a CDN and all the bulk data was served from Hetzner would be a good/affordable option.

comment 7y ago · link · parent

A lot of scientific/numeric work (up until quite recently, it's slowly, slowly changing) involves text processing of inputs and outputs of other programs, using Python as the glue language.

This is a lot of old code, and it's all ASCII, no matter what the locale of the system is. And even if the code was updated, all the messages would still be in some text == bytes encoding, because there's no "user data" involved, and the throughput desired is in many gigabytes of text processed per second.

So yeah, unicode is not "everywhere": it may be everywhere on the public internet, but there is a world beyond this.

comment 7y ago · link · parent

That doesn't stop you from changing something in your working copy.

The hack here is that the working copy used to build from wasn't a clean clone on each build, so just fetching changes from the (un-pwned) github repository would apply those changes and not affect the modified file on the build server.

comment 7y ago · link · parent

I'd tend to agree that it matters the more you rely on visual feedback. I type on unfamiliar keyboards a lot and use visual feedback almost exclusively; 10ms latency was imperceptible, 20ms was very noticeable, and the 50ms latency was at the point of being unbearable (I'd go find another machine to work on or something before typing with that for more than a couple minutes).

comment 7y ago · link · parent

Having CI configuration inside the codebase also sounds like a nightmare when changes to the CI or deployment environment require configuration changes or when multiple CI/deployment environments exist.

For example as a use case: Software has dozens of tagged releases; organization moves from deploying on AWS to deploying in a Kubernetes cluster (requiring at least one change to the deployment configuration). Now, to deploy any of the old tagged releases, every release now has to be updated with the new configuration. This gets messy because there are two different orthogonal sets of versions involved. First, the code being developed has versions and second, the environments for testing, integration, and deployment also change over time and have versions to be controlled.

Even more broadly, consider multiple organizations using the same software package. They will each almost certainly have their own CI infrastructure, so there is no one "CI configuration" that could ever be checked into the repository along with the code without each user having to maintain their own forks/patchsets of the repo with all the pain that entails.

comment 7y ago · link · parent

Defense contractors are similar to other companies that (strongly) do not believe that software is their product and do not value it any further than that it is a small component in the large system they are delivering. There's a lot of old-school attitudes still present: for example, I've heard software developers referred to as "software typists" a number of times.

Basically there are two entirely different paths here. For example, the person who writes all the software to drive the cockpit displays is probably called something like a "cockpit avionics engineer" and is organizationally in the department that's responsible for building such things. These people can get paid very well.

On the other hand, a "software developer" is much more likely to be a support function. Lots of maintenance of legacy stuff more than anything, and what actual development work exists might be nothing more than taking an algorithm directly from a standard and implementing it in whatever language is required by the project. These roles are not particularly well-paid and have a lot of turnover.

It is a very different world.

comment 7y ago · link · parent

It's still a lot given that when targetting the entire world (especially either mobile links or portions of the globe that don't have a CDN a millisecond away), a typical assumed link is on the order of 512 kbps bandwidth with 100ms RTT. That's two and a half seconds to load just your framework with a cold cache and without including any content.

Yes, many web developers are just targeting their own areas and test on high-speed links and everything seems fine, but frameworks that aim for widespread use still need to care about every single byte.

comment 7y ago · link · parent

The assumption here is that the machine you're using to do the log analysis is also a Linux machine that uses systemd (and thus has a journalctl binary). This is not necessarily true.

A lot of the annoyance that some people have with the systemd crowd is that these kind of assumptions are made all over the place. The actual software is not bad (I really do prefer dealing with systemd units than writing shell scripts for each service) but it can be hard to get past.

comment 7y ago · link · parent

First, because taking aircraft out of service for design issues is incredibly rare (less than once a decade across all kinds of passenger aircraft).

Second, because airplane manufacturers have a significant amount of negotiating power, combined with airlines very often not being in a great financial position: Boeing certainly wouldn't want to be liable for storage costs and the logistics of getting a fleet of planes back to a central facility if an airline went bankrupt, for example. Leases also get legally interesting when the assets involved move internationally on a daily basis...

comment 7y ago · link · parent

As a developer/maintainer of projects, the commit messages in the file browser and open issue view are both incredibly useful.

There's important metadata about the structure of a project when looking at the last commit of a group of files: do they all change together? They are more tightly coupled to one another if so. If all the files are touched by each commit, then there's an issue with the project's development process or organization of code. I also tend to run into issues frequently that were introduced by the last change to a particular part of the codebase. If I can navigate to the appropriate directory and look at the commit messages for each file, I can often be pointed directly at the commit that caused the problem and the files involved with the change.

Secondly, when developing, I'm already running the latest version or something later, so looking at closed issues contains no useful information whatsoever. I'm looking for two things: 1) What I should work on next, or 2) Is the problem I'm seeing already reported and has any work already been done on it?

Not showing open issues also has the negative UX that people will look to see if their issue already exists in whatever page they land on, and if they don't see it, create a new one. Therefore, defaulting to closed issues has the potential to raise the number of duplicate issues by some amount. Project maintainers don't like this much.

comment 7y ago · link · parent

This is exactly the kind of change that should not get someone hired: a lot of the UX concerns he highlighted are valid, but the net result of his work looked like "complete redesign" to most folks and hides some pretty important information in the process.

The amazing designers that you really do want to find are the ones that will give you the smallest set of improvements that fix UX issues without changing the visual language of the product. If done right, most people wouldn't even notice that the site had changed at all but their daily frustration with being able to find things would decrease.

For example, the nested tab mess can be a real annoyance. It's worse on mobile, too, but the designer managed to tweak the design and completely forget about anything other than desktop dimensions. This is not really forgivable in 2018. The least possible change might be: let's try placing all the tabs together on the screen so that people don't go looking in one list for an item that's in the other. Then, making all the pages have the same navigation group containing both sets of tabs makes sense. At this point, stop!

Certainly, if the company thinks a design looks "dated", it could be updated at some other time, but ideally there would be zero change in information architecture to go along with it. Again, most people wouldn't notice the colors had changed subtly and information would be in exactly the same place it was, but ideally you'd be able to measure things like "number of users reporting that the site gives them eyestrain decreased by XX%".

GitHub certainly isn't perfect, but their UX people do seem to be fairly good. I've been using the product since it looked as it did back in 2013, and without side by side images, I actually couldn't point to any one point in time and say "that's when they redesigned the product and everything changed!".

comment 7y ago · link · parent

I have an overriding design principle that helps find where that balance should be: "Attempt, within reason, to minimize the number of places a reader must look in order to understand the code on his or her screen. Minimizing the number of changes required to alter functionality is a secondary but lesser goal. Minimizing the number of characters the programmer must type to implement functionality is explicitly a non-goal."

For large C++ codebases at work, this leads to coding standards like:

- Don't introduce typedefs referencing other typedefs in public API, especially when the typedefs and the API that uses them are in different files. Having to look in more than half a dozen different files just to understand the signature of a function is actively reader-hostile.

We have a ton of conventions similar to this that help to make the code significantly more pleasant to read. It turns out that we still have quite a few useful abstractions, but they tend to be fairly large compared to most codebases I've worked with previously.

comment 7y ago · link · parent

It's rather more likely that the marketplace won't be cut back, due to exactly the factors you've mentioned. The real issue, of course, is that all of this cheap junk sells, and sells really well, even if it's counterfeit or just junk. So there really is a lot of growth potential in that part of the business: the growth and success of Walmart over the past twenty years is further evidence of this.

Probably wait for something to be announced like "Prime Plus" for premium brands as they try to figure out how to differentiate products in the market, or watch them continue to expand into new types of markets altogether... there's very little for them else to do.

comment 8y ago · link · parent

This link posted on HN just yesterday seems to be extremely apropos: https://80000hours.org/articles/accidental-harm/

In short, you have to be very careful when you work on hard problems not to divert resources away from other approaches... that might be even more valuable.

comment 8y ago · link · parent

How's the open source version of mist.io these days? I remember evaluating it (and cockpit, among others) for managing a small isolated network of about two dozen machines in early 2017 and it seemed that the open source release had been somewhat ignored and wasn't really working at that point.

Note that all of my work is on networks that are disconnected from the internet, so I ignore SaaS offerings or versions completely.

comment 8y ago · link · parent

I'd argue that obsessing about timeliness is of itself evidence of being high-strung or high-maintenance.

On-time is... sometime that day. Or perhaps tomorrow. Later than that is significantly late, but why worry about an hour or two? It really is a very, very particular western culture thing to be time-obsessed: it's not specifically something that all humans do intuitively.

comment 8y ago · link · parent

The whole "point" of story points is that they are meaningless until after something has been actually accomplished. After working for a few weeks, it's pretty easy to say something along the lines of "the team got 52 points finished and deployed last week" - this is useful to know, and over time you'll develop an intuition that may be useful for forecasting what's likely to get done over the next few weeks or months on this particular project with this particular team. That's it, that's the most you can do. Most of the other stuff people try to do is so noisy that it makes for nice spreadsheets of the "plan" but bears very little resemblance to reality.

comment 9y ago · link · parent

Of all the services that I've used or thought about using, Spotify is absolutely one that has done many, many things right in being consumer friendly in ways that I feel are fairly important:

- Third party clients are a thing, to the point where I really feel like I'm being sold a streaming service and not a tiny window through which I can occasionally listen to music. My normal media player is a python script that talks to an API. This is amazingly useful.

- When using Spotify-provided apps, there's the ability to save things for later offline listening. I haven't yet hit a limit on how many things I've been able to save.

- There's no limit on the number of devices I can use with the service, although I can only stream concurrently on one -- multiple offline devices have worked great though

- There isn't a time limit that certain content is available (this is much easier to feasibly achieve with audio compared to high-definition video, and a major difference between Spotify and services like Netflix).

This is sufficient usability, freedom, and value for money for me to subscribe with the knowledge that what I'm paying for is access to a library that Spotify has created and maintained. I used to rip/buy music on a regular basis and no longer really feel the need to do so. I think it's probably useful to consider what the differences are between services and specifically what makes them anti-consumer.

comment 9y ago · link · parent

It's interesting that this is being discussed again this year, because the critical part of the discussion really happened back in May of this year.

https://nvd.nist.gov/vuln/detail/CVE-2017-5689 is the CVE in question and existed for ~7 years, permitting exactly the scenarios I postulated to occur given unprivileged access to the network on which the servers reside.

There's been some rapid threat modeling done already: for example, for datacenter environments, the impact of this issue is largely mitigated by reducing physical access to this network behind the firewall - https://software.intel.com/en-us/documentation/amt-reference... indicates that we can firewall traffic so that only known management computers can access it from outside. (However, one compromised computer in the datacenter can be used as a source to trigger this exploit, so whole-datacenter monitoring/alerting for traffic on these ports is required).

The overall risk involved is still fairly high, because this security posture is effectively "remote root-level access for anyone with unprivileged access to the local network".

comment 9y ago · link · parent

Would you find it similarly useful the day after someone else decided to re-image all your machines and then change BIOS password settings to further prevent you from fixing the problem? How about if they then decided to send you a ransom notice that you could regain access to your infrastructure for a particular sum of money? Stuff like this is real and happens all over the world. Businesses would rather not publically admit that they've been owned, either: it's spectacularly bad press.

Fortunately, most of the security vulnerabilities that have been abused in this sort of way in the past are patched quickly. But what if it was impossible to patch systems because the vulnerability is baked into firmware? That's the horrifying case that we have here. If exploiting this software (and exploits HAVE ALREADY been published, so it's really just a matter of weaponisation at this point) becomes common, then many sysadmins will be in the unenviable position where someone who can download instructions from the Internet can cause immense damage to their systems and network on any given day.

And that's just the tip of the iceberg. Imagining how these systems are very, very likely already being used to conduct digital espionage is similarly disturbing. It's easy to think that "no one would want to conduct espionage against my tiny company in ${small town}", but unfortunately the reality is quite different. https://www.fbi.gov/news/stories/economic-espionage has some reasonably interesting information about the sort of shenanigans that are routinely undertaken - unfortunately this is just a small example as many instances are not publically discussed.

comment 9y ago · link · parent

If you're interested in doing more ML work, here's an interesting thought experiment to guide your research towards an idea: ML is currently widely used for things like speech processing and synthesis, music, as well as vision. All of this is sensing and reacting to stimuli at various frequencies. But there is much more... So from the lowest to highest practical frequencies, what do we use each band for, and what would it mean to see in it?

Some examples:

- Single digit Hertz: seismic observations. Could you build a better earthquake predictor? How about an active control system for shifting building loads during an earthquake?

- kilohertz: Lightning detection systems.

- kilohertz to low megahertz: traditional FM/AM radio. Is there a better way?

- gigahertz: think your good old-fashioned microwave oven. What if it could automatically learn what it's cooking and how to best heat it evenly?

- gigahertz: could you build a smarter Wi-Fi network (or cell network) if devices reported their location when they didn't have coverage and the network could automatically adjust?

- tens of gigahertz: we now have object sensing systems in cars. what other parts of life might that kind of technology be useful for?

- infrared: what happens when a ML-based vision system wants to see in the dark?

- above the visual spectrum: ML + medical imaging (x-rays, other scans? what could be learned?)

There are lots of fun research questions to be answered and new technology yet developed. The wonderful part about doing some really structured research along these lines is that you might have to ask about "who knows about this" and run into the PhD student who's working in this area -today- but isn't yet developing a product. There is a ton of university research that could lead you towards an interesting new product: the idea doesn't have to be your own, or even come from the typical "ideas" person.

1234567