HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sjustinas

no profile record

comments

sjustinas
·2 anni fa·discuss


    $ nix-shell -p nodejs_20
    [nix-shell:~]$ node --version
    v20.18.1
Oh, the UX horror!
sjustinas
·3 anni fa·discuss
me reading 89th "attack helicopter" joke in a row: WHEEZE
sjustinas
·3 anni fa·discuss
CS2, essentially a rewrite of CS:GO using the Source 2 engine is coming "this summer", so there's that.
sjustinas
·4 anni fa·discuss
I spun up a test server of Pleroma recently. Following just a few people, 0 people following me AFAIK, I did join a few relays so my federated timeline is populated. It is currently showing 360MB RSS and the CPU load maxes out at ~50% of a single vCPU.
sjustinas
·4 anni fa·discuss
Note also that recently a fork called Akkoma[1] sprung up. If one is looking to self-host, it might be worth looking into this vs Pleroma (I don't have a horse in this race, was just doing some research on different ActivityPub servers).

[1]: https://coffee-and-dreams.uk/development/2022/06/24/akkoma.h...
sjustinas
·4 anni fa·discuss
Just to note, Pleroma also uses a job queue: Oban. https://hexdocs.pm/oban/Oban.html
sjustinas
·4 anni fa·discuss
Not the parent poster, but there seems to be some misunderstanding. The GitHub issue creator explained that they're getting two different behaviors depending on C compile flags. That's already not "the same behavior as Go" AFAIK.

> What kind of behavior do you expect?

Defined behavior, I assume. If V uses C as an intermediate, and the generated C code invokes undefined behavior, then V can not guarantee "no UB" in that case at all. It is completely up to the C compiler what happens. Even if the compiled app behaves "properly, like Go" with the specific C compiler, with the specific flags, on that specific machine, does not mean this behavior is defined and consistent.
sjustinas
·4 anni fa·discuss
Are there plans for docs to be updated? The 0.3 release notes claim:

> Option and Result are now separate types: ?Foo and !Foo respectively. Old code will continue working for 1 year and will result in a warning/hint.

Yet, doc/docs.md still states:

> V combines Option and Result into one type, so you don't need to decide which one to use.

Is there an up-to-date doc, or how does one find out more about these types? I found parts of the RFC overhauling the error handling [0] pretty bizarre, so I'm interested to see how the implementation turned out.

[0]: https://github.com/vlang/rfcs/pull/7

edit: linked to the wrong RFC initially.
sjustinas
·4 anni fa·discuss
> Is there any way to use this system without an extra device (no phone, no key, only my pc)?

I've used rust-u2f in the past, although it seems to be Linux only. https://github.com/danstiner/rust-u2f
sjustinas
·4 anni fa·discuss
Not a tutorial, but the unofficial wiki has info on Raspberry Pi and other ARM SBCs: https://nixos.wiki/wiki/NixOS_on_ARM
sjustinas
·5 anni fa·discuss
"The Artificial Intelligence That Deleted A Century" is another similar one from Tom.

https://www.youtube.com/watch?v=-JlxuQ7tPgQ
sjustinas
·5 anni fa·discuss
That's absolutely fair, I don't think either the parent or the NixOS devs implied in any way that it should be the right fit for everyone or 100% of the Linux distro market share is the end goal.

For me, the benefits outweigh the quirks of the language. As my alternatives to manage multiple machines consist of: wonky Bash scripts, similar tooling but bolted-on on top of the distro and with no built-in rollbacks (Ansible, Puppet, etc.), or trying to get everything right manually, Nix does not seem like the worst out of this bunch.
sjustinas
·5 anni fa·discuss
The Steam client works natively on Linux. It ships its own version of Wine, called Proton and many games work well. They are doing lots of work to get the remaining games working in preparation for the launch of Steam Deck.

https://www.protondb.com/