Better HN
topnewbestaskshowjobs
Log inSign up

daxvena

125 karma · joined Sep 25, 2015 (11y ago) · 51 submissions

Submissions

comment 2y ago · link · parent

I doubt it's going to go the same way as search. You can't run Google on consumer hardware, but you can run LLMs locally.

At worse, newer models will get worse and you can just stick to older models.

You could also argue that proprietary models gated by an API are better than anything you can run locally, and yeah maybe those will get worse with time.

They're not going to get any worse than what you can run locally though. If they do, open models will overtake them, and then we'd be in a better position overall.

comment 3y ago · link · parent

I feel like I gamed this somehow. Instead of looking for serial killers, I looked for anyone who didn't look like a programming language inventor and got 10/10.

comment 3y ago · link · parent

I think you're missing what they're trying to say. You can still select what you actually need in a different order, but changing the order gives more immediate feedback from autocomplete. The order has pretty much zero impact on the performance of a query. A parser would still have to read out the whole query, and it's not expensive to unravel into a more efficient implementation if it would really help.

The problem is that SQL forces you to think about what to select before you even say where you're selecting from. There's nothing a client can do to recommend columns if it doesn't know where you're selecting from. It's pretty cumbersome to have to SELECT * FROM x and then go back and erase the * to actually get auto-completions.

It basically forces you to tell it what you want before you even know what the options are.

comment 3y ago · link · parent

Umm because medicine is supposed to be about helping other people? Why would people spend billions of dollars trying to help others work through a natural disaster?

To me that's one of the worst things about modern pharmaceutical companies, they care more about making money than actually helping people.

comment 3y ago · link · parent

Yes I do, and I also know that it's been banging on the door for a long time. My point was that it's slow moving, not that it hasn't affected us yet.

comment 3y ago · link · parent

> I'm not him, but the older I get the worse I see interactions with social media getting, so I don't think anyone is going to outgrow it.

*her (i wonder if that changes your perception of my comment :P)

> Do you see your peers growing out of social media? Or do you think it will be a permanent fixture in their lives?

Kind of, but not really? I see it more transforming into something else. It definitely seems like a lot of people my age and younger are more cautious about social media compared to most millennials, but that doesn't really seem to stop us from using it. I'm really happy to see more of a shift towards open platforms like Mastodon, I'm just not sure where that's going to head.

comment 3y ago · link · parent

As a youngish adult (27) this is some of what I feel:

- Climate change is slowly creeping up on us and corporations keep on trucking along with an endless growth mindset, not caring about the consequences of what is essentially a cancer

- Somehow I lucked out and ended up turning my favourite hobby into a job that pays really well, but something feels empty. I don't feel like I'm working any harder than people in lower paying jobs. I don't feel like I'm providing more value. It kind of makes me sick how bad income inequality seems to be getting. People around me in tech jobs seem to constantly want more, while I'm perfectly happy with what I have.

- Social media is crippling social interactions. It's taking away a deeper form of connection and replacing it with something more surface level, while also warping people's perceptions of reality.

- Most forms of social media make you feel like crap (with how it's designed to manipulate dopamine levels), but disconnecting can make you feel socially isolated.

- We seem to have a lot less trust in institutions like the government, organized religion, and capitalism having access to information that previous generations didn't have - and because of this we have fewer places to find hope.

- It feels like people on both the left & right are increasingly behaving more like fascists and it's kind of terrifying. I always feel like I have to guard myself from "saying the wrong thing" and that makes me feel like I'm being less myself.

comment 4y ago · link · parent

I kind of feel like you're missing out then.

I was pretty young when RSS was "popular" and didn't really get into it back then. I started using it in the past couple of years, and I find it's one of the best ways to keep up to date with multiple things I want to follow (without being tied to a specific platform).

I would also be pretty surprised if you haven't heard of podcasts in over ten years. I feel like a "podcast" isn't really a podcast if it doesn't have an RSS feed.

comment 4y ago · link · parent

> I have a lot of faith in Elon based on past results. He already solved the problem of people who don't believe in climate change - he got them to buy electric cars because they are sexy. Brilliant man.

Wow that's a grim perspective. Somehow I doubt that catering to the consumerism that got us to where we are with climate change is what's going to help us fix it.

comment 4y ago · link · parent

Only if you limit yourself to current CPU architectures. Even GPUs right now are significantly more declarative than CPUs, and it definitely seems like some point in the future we could end up moving towards asynchronous circuits built with memristors.

comment 4y ago · link · parent

Probably because they find it fun? That's almost always the case when something seems "impractical".

I kind of feel like there's a disconnect here between people who write software solely for work & to solve an engineering problem vs people who like it as a hobby.

I have very little interest in using Rust for webdev, but I'm excited to see what people having fun with it will come up with.

comment 4y ago · link · parent

Hasn't this already already happened though? There's literally nothing else that can compete with ripgrep.

A project using Rust isn't a good enough selling point to me if the tool doesn't do what I want, but more often than not I find Rust projects have a level of quality far exceeding C & C++ projects.

comment 4y ago · link · parent

For me it was: Windows -> Xandros (1 year) -> Ubuntu (6 years) -> Arch (4 years) -> NixOS (4 years)

Except I never actually installed Xandros myself, my dad just brought it home from work one day and installed in my computer.

comment 4y ago · link · parent

I thought the exact same thing until I switched to NixOS. I love Arch, but I'd never go back.

comment 4y ago · link · parent

Another funny thing is that good ole vacuum tube computers could automate computation before transistors became widespread.

comment 4y ago · link · parent

I'm not saying the UNIX philosophy is the "best" way, I'm just stating why it's valuable.

Of course most people don't care about those things, but as a developer, the main issue I see with Windows and macOS, is that they build specialized interfaces that lock you into certain ways of doing things, which may be convenient, but are difficult to migrate away from, and a pain to automate and reproduce.

I really value that the UNIX philosophy is geared more towards building simple tools that are designed to be combined with other simple tools to solve a more complex problem, and that it doesn't try to lock you into using any particular tool to solve a problem.

So no, I may not provide binaries for Windows & Mac for personal projects, but I'm not going to be openly hostile towards people who want to build things from source or contribute fixes for Windows & macOS.

comment 4y ago · link · parent

I get where you're coming from, but I think the biggest pro for the "UNIX way" is that text on a filesystem extremely accessible. You don't need a specialized tool to read & modify configuration, you just need a text editor. And while there's no standard for how the data is structured, it's usually pretty easy to figure it out from context.

I think it's also really easy to underestimate all the tooling built around text. As soon as you try out some other way, you loose out on version control, diffing, grepping, and a whole bunch of other general tools built for text.

I think the only way to get around this is to build generalized tools for working with binary data as a data structure. The problem with this approach is that now you need to maintain a database that describes every possible binary format, where text editors only really have to concern themselves with ASCII & unicode to be useful for most cases.

comment 5y ago · link · parent

FreeBSD includes a kernel, drivers, and userland utilities under one project. If your complaint is that systemd is "bloated", it doesn't make any sense why you would want to switch to a system that's even more "bloated".

comment 5y ago · link · parent

It looks like it won't be so simple for Steam. I just found out a couple of days ago that Steam only uses CEF to render the main content, and it actually looks like it's using GTK2 to render the window.

See https://github.com/ValveSoftware/steam-for-linux/issues/4924....

comment 5y ago · link · parent

I'm not sure what the slashpackage hierarchy is, but Nix & NixOS started in 2003.

comment 5y ago · link · parent

Maybe the Nix package manager / NixOS is what you're looking for? I think it takes the best features from both worlds.

Every package installed with Nix is isolated into content-addressable* directories, so for example, my install of Firefox is located at /nix/store/c7pmng2x05dkigpbhnjs8fdzd8kk31np-firefox-85.0.2/bin/firefox. This is pretty inconvenient to use directly, so Nix generates a profile that symlinks all your packages into one place (eg. /run/current/system/sw, ~/.nix-profile), and then environment variables like PATH can just include <PROFILE_DIR>/bin.

With this approach, I can have multiple versions of the same package installed simultaneously, without them conflicting with each other. Like in a traditional distro, any dependencies that are shared between packages aren't duplicated, but if a package needs to explicitly depend on a different version, it can.

Also, because Nix is designed as a functional package manager for building packages from source (even though it has a binary cache), you can trace back exactly what sources were used to build your package and its dependencies, all the way back to the bootstrap binaries used to build any self-hosting compilers (gcc, rust, openjdk, ...)

* Most packages use a hash that's generated from the inputs used to build it, rather than the output that's generated.

comment 5y ago · link · parent

> However, the crux of my argument is that it’s easy enough to emulate this construction in other languages.

It's also easy enough to emulate all control flow statements with goto. Tagged unions are valuable because they help communicate restraints. Not only to other developers, but also to the compiler.

comment 5y ago · link · parent

Wayland has a proper protocol for fractional per-output scaling: https://wayland-book.com/surfaces-in-depth/hidpi.html. While there are many reasons why I prefer Wayland over X, this is the biggest.

X only allows setting a DPI per "display", but not per screen (multiple monitor setups where you can drag windows between screens use one X "display"). So you have to resort to these hacks.

comment 5y ago · link · parent

It could, depending on your use case, but normally all packages from nixpkgs share the same libcurl, so when libcurl is updated, all packages that depend on it will also be updated.

The old libcurl will still exist on your system to allow you to rollback to previous states of your system, but you can always run nix-collect-garbage if you want to free up disk space.

This is similar to the situation in Arch Linux where pacman keeps all downloaded packages, and you have to run paccache if you want to free space.

comment 5y ago · link · parent

The Visitor pattern is great if you want to process a data structure as "stream" without actually instantiating it, in the same way you can read a file line-by-line instead of loading it completely into memory.

For example, serde uses the visitor pattern to encode its intermediate representation. If it used pattern matching instead of the visitor pattern, it would have to instantiate its intermediate representation as an enum, which would add unnecessary overhead.

comment 5y ago · link · parent

It sounds like your definition of stable applies to a very limited set of programming languages. The only thing I can think of that would fit that definition is C.

Have you seen how many new features have been added to C++20? (which is probably the closest language to Rust) Not to mention any of the dynamically typed languages.

comment 5y ago · link · parent

I prefer using dap-mode. It has a much nicer interface that's consistent across multiple debuggers. I use it for C, C++, Rust (Native Debug + gdb) and Python (debugpy).

comment 5y ago · link · parent

No, but you can always encode this augmented information in types to make it explicit, and possibly help the compiler make optimizations. Using a weaker type when you can use a stronger type is just as bad as removing type information.

comment 6y ago · link · parent

Huh, weird. I was just able to start a video with youtube-dl + mpv (it took a few tries), but I still can't access anything from the website.

comment 6y ago · link · parent

Yes it does, you can either push to multiple remotes individually, or setup multiple pushurls for a single remote.
12