Better HN
topnewbestaskshowjobs
Log inSign up

chpatrick

2,704 karma · joined May 5, 2014 (12y ago) · 1,214 submissions

Submissions

comment 5y ago · link · parent

I've had pretty much no problem on my ThinkPad. It always depends on how custom your setup is.

comment 5y ago · link · parent

They still have hardwood furniture though. No one's forcing anyone to buy the cheap plywood ones.

comment 6y ago · link · parent

I would start with whatever is simplest and use the GPU if you actually need to optimize performance.

comment 6y ago · link · parent

It's just a historical fact that GPUs originally evolved to do graphics. What to they're really good at is doing a huge amount of numerical computation in parallel, of which graphics is just a specific use case, and is exactly what you need for ML. If they were invented today, they would be called something else. They're already the specialized hardware you're describing.

comment 6y ago · link · parent

I used to use Mate but I think maintaining GNOME 2 is an uphill battle. Now I use gnome-flashback with xmonad and don't really have any problems. On NixOS it's very simple to configure.

comment 6y ago · link · parent

It was actually in the source code, still pretty stupid IMO: https://github.com/l1ving/youtube-dl/commit/c438ea87e4db650f...

comment 6y ago · link · parent

Maybe as a country the US is more powerful with healthy competition among strong tech companies than with monopolies. Look at Intel and AMD.

comment 6y ago · link · parent

They still have the real wooden furniture though. You don't have to buy the cheap paper ones.

comment 6y ago · link · parent

Our team uses Nix. It lets us share a binary cache of modified/own packages between the developers, CI, and our production machines.

If you push something to CI that needs some new dependencies, the CI machine will build them and when you want to get a local dev environment or deploy, the binaries will be fetched from the CI machine. We can also send the binaries between machines to save compile time. This is possible because we have confidence that it doesn't matter which machine built them because the environment is so strictly controlled.

comment 6y ago · link · parent

That's assuming the parents have those skills.

comment 6y ago · link · parent

I've ordered from them many times to Hungary, it works well.

comment 6y ago · link · parent

You might be interested in https://www.shadertoy.com/

comment 6y ago · link · parent

I think functional languages are a good fit for the problem though. Given some input, compute a static build plan. It's very rare that you need to do imperative-style computation for that. What I think Nix really needs is some kind of static typing, because right now if you make a type error the error might appear in a completely random location, making it difficult to debug.

comment 6y ago · link · parent

Yep, that's nixops, although it's a command-line application.

comment 6y ago · link · parent

You're right in general, but most nixos modules have an `extraConfig` field where you can put whatever you want.

comment 6y ago · link · parent

In my experience, nixpkgs packages are modified with the bare minimum to get the upstream code to work.

comment 6y ago · link · parent

It's also by the people who made the original.

comment 6y ago · link · parent

I would say the installation experience might be a bit more involved, but once it's installed it's much more worry-free for me. On every other distribution I've used (including Ubuntu and co), it's very easy to break the system completely. On Nix, it's almost impossible because you can always boot directly into the state before your update. Once you've set up your configuration, you can install it instantly on other machines by copying one file. On other distributions, you would have to re-install and configure everything by hand. Many of the tweaks for which you usually have to read Arch Wiki are also built into Nix, so you just have to write services.myService.myOption = foo; and you're done.

For the second point, if you've got a package that just builds with the usual ./configure, make, make install, here is all you need to get a nix package for it:

  { stdenv }:
  stdenv.mkDerivation {
    name = "my-package";
    src = ./.;
    buildInputs = [ ... whatever dependencies you need ...];
  }
And the standard build commands will be run automatically. The only thing that's kind of annoying is installing binary distributions of packages since they need to be patched to work on Nix, but it's not the end of the world. Also, nixpkgs is so universal that I very rarely find myself having to add a package that's not in it.

comment 6y ago · link · parent

I went down the same path as you and now run NixOS. The biggest advantage is that all the tweaks you have to do every time you install are now just a couple of lines in a file you only write once. It's very hard to break the system because you can always boot a previous configuration. Everything is customizable like Gentoo but if you don't modify a package its binary will be fetched from a central server so installation is very fast.

comment 6y ago · link · parent

Doesn't the human brain have millions of years of band aids?

comment 6y ago · link · parent

I don't think that's currently true in almost any mainstream language though. Even in C++, it's faster to use an optimized BLAS library working on a large set of data than your own for loop.

comment 6y ago · link · parent

There's also jq for yaml: https://github.com/kislyuk/yq

comment 7y ago · link · parent

In Hungary's case the threat is a massive state-funded propaganda machine pretending to be the press. How do you fight against that, especially if no one wants to pay for subscriptions?

comment 7y ago · link · parent

What I fear is that the new, more fulfilling occupations you describe will go to the next generation of non-truckers, not those who lost their jobs.

If you spent your whole life driving trucks and it's what you're good at, can you really transfer to a new occupation that's more fulfilling and well-paid in older age, or will you just be left unemployed or stuck with a worse job?

I think more automation is absolutely the future but we need to find some way to take care of the people who are left behind, and not just say "oh they'll get some other job".

comment 7y ago · link · parent

We use this at our startup. We have a Haskell math library where every vector/matrix/rotation knows the spaces they deal with (World, Camera, etc), and using them with incorrect spaces is a type error. This is enormously useful because in 3D computer vision/graphics almost everything is 3 or 4-dimensional, so it's very easy to use them the wrong way. When you read C++ computer vision code a datatype often has a Matrix3 or worse yet a double[] in it and you have no idea what coordinate system (or even matrix order) it represents. With this, it's all self-documenting and difficult to get wrong.

comment 8y ago · link · parent

The best experience I've had so far with C++ dependency management is with Nix: https://nixos.org/nix/

It has a very large collection of packages already available, supports many existing build systems (CMake and autotools work out of the box, but you can hook up anything), and can download binary packages for almost everything.

comment 8y ago · link · parent

It's nice that this is open-source, but if it involves an intermediate server anyway, PushBullet also does a great job, and on various platforms: https://www.pushbullet.com/ (No affiliation)

comment 9y ago · link · parent

You can solve it using a SAT solver like Z3. There are particularly elegant solutions in Haskell that basically interpret the regex but on "symbolic" characters rather than real ones. You can then ask what values these characters can take such that all regexes match.

Some implementations: https://github.com/ekmett/ersatz/tree/master/examples/regexp... https://gist.github.com/LeventErkok/4942496

comment 10y ago · link · parent

Why not use Arch and get the same benefits, along with extremely up to date binary packages and build scripts for basically everything?

- former Slackware and Gentoo user

1
3738394041