Better HN
topnewbestaskshowjobs
Log inSign up

sjustinas

187 karma · joined Oct 19, 2013 (13y ago) · 46 submissions

[ my public key: https://keybase.io/justinas; my proof: https://keybase.io/justinas/sigs/pluFvot9xGitNxfT3mqwirBw-A40U3A2kzDlPR9_4ik ]
Submissions

comment 1y ago · link · parent

    $ nix-shell -p nodejs_20
    [nix-shell:~]$ node --version
    v20.18.1
Oh, the UX horror!

comment 3y ago · link · parent

me reading 89th "attack helicopter" joke in a row: WHEEZE

comment 3y ago · link · parent

CS2, essentially a rewrite of CS:GO using the Source 2 engine is coming "this summer", so there's that.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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...

comment 4y ago · link · parent

Just to note, Pleroma also uses a job queue: Oban. https://hexdocs.pm/oban/Oban.html

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

> 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

comment 4y ago · link · parent

Not a tutorial, but the unofficial wiki has info on Raspberry Pi and other ARM SBCs: https://nixos.wiki/wiki/NixOS_on_ARM

comment 4y ago · link · parent

"The Artificial Intelligence That Deleted A Century" is another similar one from Tom.

https://www.youtube.com/watch?v=-JlxuQ7tPgQ

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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/

comment 6y ago · link · parent

There is one in anyhow's README.

https://github.com/dtolnay/anyhow#comparison-to-failure

comment 6y ago · link · parent

A Rust String is encoded as UTF-8, it is not an array of char-s. You can get an iterator over individual codepoints using the chars() method.

https://doc.rust-lang.org/std/string/struct.String.html#meth...

comment 6y ago · link · parent

Location: Vilnius, Lithuania

Remote: Yes

Willing to relocate: No

Technologies: Rust, Python, Go, C#, JavaScript, C (in vague order of preference/expertise; more inside the resume)

Résumé/CV: https://justinas.keybase.pub/myresume.pdf

Email: justinas@justinas.org

I am a backend engineer who has spent the last 4 years building real-time online advertising systems in .NET. However, I am looking to change up both the domain I work in and the technologies I employ while at it.

comment 6y ago · link · parent

At this point you're just arguing for removing all mechanical skill from competitive games.

Impede the gameplay however you want, in pure mechanical aspects a program will always have the benefit of perfect accuracy and near-zero reaction time (as opposed to the >200ms average of a human)

comment 6y ago · link · parent

The indexing operator [] does bound checks, the method `get_unchecked()` does not. If you need the extra speed at the expense of safety, you can do it, but you have to consciously choose this trade-off. Unlike in C, in Rust safety is opt-out.

comment 7y ago · link · parent

I've been running my own email since about 8 months ago. I have Google's MX (that I used before) on backup (with a lower priority). Will not help me with every sort of fuckup possible, but it will at least deliver the mail if my server is down.

comment 7y ago · link · parent

While Google might have fucked up, what could possibly be your workflow where a single crashed tab costs you one and a half day's of work?

comment 7y ago · link · parent

Librem 5 has kill switches for camera, audio and data.

https://puri.sm/products/librem-5/

comment 7y ago · link · parent

Do you not consider pip third-party? It does not come with the standard Python distribution. Although `ensurepip` does.

comment 7y ago · link · parent

See https://langserver.org/#implementations-client

comment 7y ago · link · parent

Could you elaborate on why you think Pi 4 is "overpowered" for Kodi?

From what I've seen, there are still some kinks playing 4K HEVC videos. So hopefully, when software/firmware/etc. catches up, it should be "just powerful enough" for a Kodi box, all because of hardware decode.

Barely handling 4K does not scream "overpowered for a media center" to me.

comment 7y ago · link · parent

I'm on the same boat: a year ago, I bought a first-gen Pixel. Back then, Pixel 2 was already out and even Pixel 3 was on the horizon, but 5" is the absolute maximum size I can comfortably operate using one hand. Hell, I would even take a 4.5" phone with decent specs. My old Moto G was incredibly comfortable.

comment 7y ago · link · parent

MSI is on it.

https://twitter.com/AustraliaMSI/status/1136188253785034752

comment 7y ago · link · parent

Could you elaborate? As far as I know, Brave promises to give you a browser and it gives you a browser. Does not sound like something I would call a "scam".

comment 7y ago · link · parent

As I replied to tlrobinson above, is this a problem when there is an an official package that bolts on a promise support?

comment 7y ago · link · parent

There is an [official] additional package "request-promise" that adds Promise support. I don't dabble in Node much, but is this a bad thing? Although on the other hand, most other libraries support promises out of the box (e.g. using the "pass no callback to get a Promise back" pattern).

comment 8y ago · link · parent

What an awful disclosure.

> <...>an elevation of privilege vulnerability exists when a ASP.NET Core web application fails to validate web requests correctly.

Fails to mention what "validating a request correctly" means. Recommends to limit allowed Host header values as a mitigation, but does not say what values are safe to accept. Example.com? localhost? 127.0.0.1? covfefe?

12