Readit News logoReadit News
marcianx commented on Doxers posing as cops are tricking big tech firms into sharing people's data   wired.com/story/doxers-po... · Posted by u/iamnothere
thih9 · 8 days ago
Too many edge cases, some would still be exploitable. Eg if the real address was:

    Sheriff.CI.Jacksonville.FL.US
Malicious actors could register:

    Sheriff.Jacksonville.FL.US
Unless your solution is to add some verification step as part of .us registrations.

marcianx · 8 days ago
Can people register a subdomain of fl.us willy-nilly though? Isn't the root domain owned by the state?
marcianx commented on Show HN: Gemini Pro 3 imagines the HN front page 10 years from now   dosaygo-studio.github.io/... · Posted by u/keepamovin
asveikau · 12 days ago
> 2035 Office 365

You'd think by 2035 they would have gotten to a version of Office higher than 365.

(Yes I know why it's called that...)

marcianx · 11 days ago
If the past is any indication, it's more likely that it'd get reset to "Office One".
marcianx commented on Steam Machine   store.steampowered.com/sa... · Posted by u/davikr
com2kid · a month ago
The pop shop app being single threaded is just embarrassing. Do a search, the entire UI freezes up until the search is complete.

Also updates regularly break my KDE session and I have to restart my display server.

Sometimes I have to switch to a tty and back to my graphical console to get my display back.

It is a mess all around.

I haven't managed to get my GPU working in Docker, ugh.

That said, it does work. Mostly.

marcianx · a month ago
Agreed about POP Shop being slow. I recently learned that they were working on its replacement: "COSMIC store" (written in Rust + Iced), and it's super-fast. You can try it with `sudo apt install cosmic-store`.

Deleted Comment

marcianx commented on Garbage collection for Rust: The finalizer frontier   soft-dev.org/pubs/html/hu... · Posted by u/ltratt
fulafel · 2 months ago
This sounds different from common refcounting semantics in other languages, is it really so in Swift?

Usually access increases the reference count (to avoid the object getting GC'd while you use it) and weak pointers are the exception where you are prepared for the object reference to suddenly become invalid.

marcianx · 2 months ago
When you have a strong pointer, you already have a positive ref count. Only once the strong pointer is destructed, is the reference count decremented.
marcianx commented on Garbage collection for Rust: The finalizer frontier   soft-dev.org/pubs/html/hu... · Posted by u/ltratt
worik · 2 months ago
Swift uses reference counting

Slows down every access to objects as reference counts must be maintained

Something weird that I never bothered with to enable circular references

marcianx · 2 months ago
Reference counted pointers can deference an object (via a strong pointer) without checking the reference count. The reference count is accessed only on operations like clone, destruction, and such. That being said, access via a weak pointer does require a reference count check.
marcianx commented on Ergonomic errors in Rust: write fast, debug with ease, handle precisely   gmcgoldr.github.io/2025/0... · Posted by u/garrinm
MindSpunk · 4 months ago
The common problems with exceptions isn’t the easy part of try/catch, it’s the execution model and “any function could throw” that causes most contention. Error values are logically simpler and fully document if and what errors the function can return. Checked exceptions solve that too, but in practice nobody used them even where available. And you still end up with hidden control flow with exceptions, the exceptional path through a function is syntactically invisible and difficult to audit without very strong language tooling.
marcianx · 4 months ago
And also the issue with checked exceptions is that one can't be generic over the checked exception, at least in Java. So it's impossible to write out a universally useful function type that's strictly typed on the error. This definition of `ThrowingFunction` for Java [1] needs just have `throws Exception`, allowing just about anything to be thrown.

Most functional-inspired languages would just have a single `f: T -> Result<U, E>` interface, which supports both (1) a specific error type `E`, which can also be an uninhabited type (e.g. never type) for an infallible operation, and (2) where `U` can be the unit type if the function doesn't return anything on success. That's about as generic as one can get with a single "interface" type.

[1]: https://docs.spring.io/spring-framework/docs/current/javadoc...

marcianx commented on The Core of Rust   jyn.dev/the-core-of-rust/... · Posted by u/zdw
khuey · 4 months ago
Ironically the "simple" JS program has a bug in it. The documentation for fs.watch is very explicit that the filename in the callback can be null and that you need to check for that. In Rust that fact would be encoded in the type system and the programmer would be forced to handle it, but in JS it's easier to just write bad code.

https://nodejs.org/api/fs.html#filename-argument

marcianx · 4 months ago
There are further bugs:

`for path in paths`

should be

`for (const path of paths)`

JS will immediately error on the lack of parens, but the `in` vs `of` iterates over indexes, not values, and those indexes are unfortunately converted to strings (since `for-in` is object field-name iteration). So even TypeScript would not have caught it when the (stringified) index is used as the first argument of `fs.watch()`.

marcianx commented on Tiny, removable "mini SSD" could eventually be a big deal for gaming handhelds   arstechnica.com/gadgets/2... · Posted by u/quantummagic
justincormack · 4 months ago
Laying around is a fairly common usage, it might be regional not sure.
marcianx · 4 months ago
I've found this to be a common Americanism, but it's still incorrect, I believe. When I moved to the US in my teens, I was surprised at the sheer disregard of English grammar rules in common vernacular here, to the point that some folks (though not my English teachers) think their incorrect use is correct. :) The most marked case I saw was in a Dodo video where the person correctly said "lying", but The Dodo's captions "corrected" it to "laying".

But I digress.

u/marcianx

KarmaCake day211April 6, 2013View Original