HNHacker News
TopNewBestAskShowJobs

goldsteinq

189 karma · joined October 1, 2020

submissionscomments
goldsteinq··on Namecheap: Russia Service Termination
So you’re saying that all Russian people should just die horrible death trying to go unarmed against National Guard (the force that exists specifically to beat up and torture protestors)...

...or just be shot trying to illegally cross the border.

You’re literally suggesting some sort of self-genocide of 150 million nation.

goldsteinq··on Namecheap: Russia Service Termination
How exactly you see a revolution of unarmed people against fully armed people that have no problem with hurting and killing others? Do you really think that average Russian has enough money to leave the country?
goldsteinq··on Namecheap: Russia Service Termination
It’s nearly impossible to organize a large scale protest in Russia. All the opposition leaders were jailed or murdered and even just posting info about protests is a criminal offence. There’s also a problem with many people being indoctrinated by the state propaganda, because independent mass media is banned.

There was an ECHR decision ordering Russia to free Navalny, but it was ignored by Russian government and Council of Europe did nothing about it.

goldsteinq··on Namecheap: Russia Service Termination
As an independent observer on the last Duma (lower house of Russian parliament) elections, I can tell with certainty that these elections were rigged. Upper house of the parliament is not elected.
goldsteinq··on Namecheap: Russia Service Termination
Russian government systematically shuts down free press, murders or imprisons leaders of oppositions and rigs elections.

The last elections to the Russian parlament were obviously rigged, and yet international community recognized them as valid. Russian opposition is fighting an uphill war with government for literally decades without any help from the other countries. Hundreds to thousdands of people are detained every day for protesting against the war.

Yes, support ratings for Putin are quite high — because there’s no free media and everyone trying to spread truth is promptly dealt with.

Nobody cared when Russia ignored the decision of ECHR to free Navalny. Nobody cared when Nemtsov was murdered. This situation is not new, it’s the result of the decades-long policy of “let Putin get away with any crimes against his country and international law as long as we get oil and gas”.

goldsteinq··on Thoughts on Markdown
I like Markdown, but I don’t like proprietary Electron apps.
goldsteinq··on Thoughts on Markdown
The hard part isn’t \section{Introduction}, but horrible hacks like \makeatletter you need to do something non-trivial.
goldsteinq··on Yes, I can connect to a DB in CSS
CSS is kinda Turing-complete, but you need an external tick. And running SQLite compiled to CSS would probably be unusably slow.
goldsteinq··on Moral Machine
The answer to all of these is “install backup brakes and refuse to start unless both primary and backup brakes are working”.
goldsteinq··on Why static languages suffer from complexity
Except this version doesn’t compile. I’m not sure that it’s possible to get it to compile: type-level Idris is actually a _subset_ of Idris and pattern-matching non-ADTs is half-broken on the type level. You can also observe this problem in this simplified example:

    f : Char -> Type
    f '0' = Int
    f _ = Char

    g : (c : Char) -> (f c)
    g '0' = 0
    g c = c
goldsteinq··on State of the Web: Deno
Read permission for a specific (non-system) directory is probably fine.
goldsteinq··on State of the Web: Deno
I did answer directly: this exploit requires run permission with any argument and write permission to any directory. It allows malicious script to escape sandbox and execute arbitrary code outside of it.
goldsteinq··on State of the Web: Deno
Yes, it exploits `--allow-run=whatever` + `--allow-write=whatever` to execute arbitrary code outside of the sandbox.

The problem with the Deno security model is that it’s hard to predict how granting any specific permission would affect overall security. For example, it may seem to be kinda reasonable for an application to ask for `--allow-write=~/.config` to create config directories & files, but it’s probably exploitable to escape the sandbox. Is `--allow-env` + `--allow-write=whatever` dangerous? I don’t know. If Deno runtime spawns a subprocess at some point, it could be used to execute arbitrary code via `LD_PRELOAD`. Is there a guarantee that Deno runtime will never spawn subprocesses? There is no way to know.

goldsteinq··on State of the Web: Deno
Yep, trying to restrict the access to a system on the API level instead of the OS level will inevitably lead to problems like these (Deno is doing worse than it could though).

If you want to isolate your program, you should use an OS-level sandbox like bubblewrap or a lightweight VM like Firecracker. I’m not familiar with Apple’s JavaScriptCore, but if it doesn’t provide any access to the system (and instead relies on passing arguments from Swift code), it might also be a viable approach.

goldsteinq··on State of the Web: Deno
It’s arguably worse than Node because Node doesn’t pretend to provide any security. With Deno you may be tempted to think that permission to run specific command actually means that program can’t run some other command (it can, and doing this doesn’t even require _clever_ hacks: Deno uses binary name instead of the full path in it’s permission system, so you only need to change $PATH for the child process).
goldsteinq··on State of the Web: Deno
Deno’s permission system is broken, you shouldn’t rely on it. Deno developers consistently ignore security issues, high priority bugs take months to fix.

https://github.com/denoland/deno/issues/11964

https://github.com/denoland/deno/issues/9750

API-based access control can’t possibly work because it’s nearly impossible to predict the effect of any single permission. For example, “permission to run specific command” makes no sense without checking the integrity of the binary, controlling the environment for LD_PRELOAD-like hacks and evaluating the code of this command for possible escape hatches. If you want to isolate a program, you need to do it on the OS level.

goldsteinq··on Searx – Privacy-respecting metasearch engine
Tor exit nodes are public and given that SearX traffic is easily distinguishable from normal traffic, you're once again in a very unique group of people who use SearX + Tor setup.
goldsteinq··on Searx – Privacy-respecting metasearch engine
The problem with self-hosted search engine is that they make you _very_ unique: you’re the only client of the ”backend“ engine with that (static and non-NATed) IP. Furthermore, you’re now one of the small group of people with ”hosting“ IPs. Using self-hosted SearX may make you easier to track, not harder.

Using SearX hosted by someone else is marginally better, but now you have to trust the owner of the server, which is probably not what you want for privacy-centered search engine.

goldsteinq··on The Invisible JavaScript Backdoor
You still can use Unicode in comments and string literals. You just can't use non-ASCII characters in identifiers.

Unicode in identifiers is just a bad idea.

1. It creates a security consideration with confusable identifiers (and lints don't always catch these)

2. It breaks tooling with RTL identifiers

3. It may not render correctly depending on fonts

4. It may be hard to type depending on keyboard layout

5. There really isn't a good reason to use non-ASCII idents anyway

goldsteinq··on The Invisible JavaScript Backdoor
You can just do `#![forbid(non_ascii_idents)]` in Rust. It'll prevent this kind of attacks completely and you shouldn't need non-ASCII idents anyway.
goldsteinq··on The Serde Rust Framework
Option<u64> would look like tagged union in memory, so one bit "tag", 8 bytes u64 and padding.

If type inside of Option<_> has invalid values (like references which can't be null) one of these would be used for None, so Option<&T> is the same size as &T.

goldsteinq··on Why Go Is Not Good (2014)
Python has operator overloading and is generally pretty complex language. It's better to think of Go as C, but with greenthreads and GC.

And having to type tons of boilerplate for any trivial task isn't "expressive simplicity".

goldsteinq··on Why Go Is Not Good (2014)
> There's no function coloring and all functions are asynchronous.

There's another form of function coloring, "does this function take context or not".

- It's easy to call function-without-context from function-with-context (but it breaks cancellation)

- It's hard to call function-with-context from function-without-context (you must create context first)

- Some functions in standard library have context, and some don't

goldsteinq··on Headless WYSISWYG Text Editor – tiptap editor
Good. Being able to handle emojified uwu-ified bee movie script is important.
goldsteinq··on Zellij – A Terminal Workspace and Multiplexer
Or, one could embed Lua, which has simple syntax and built for that exact purpose
goldsteinq··on Headless WYSISWYG Text Editor – tiptap editor
> It can't handle 78kb worth of emoji-fied uwu-ified bee movie script apparently
goldsteinq··on Zellij – A Terminal Workspace and Multiplexer
Yep. Rust is a compiled language with monomorphized generics. It's slow to compile, and also you'll need to carry rustc everywhere. rustc is huge.
goldsteinq··on Word usage guidance and alternative terms
"user name" may be viewed as "real name of a user" (my user name is Max, but my username is Goldstein).

userbase is just a rare spelling, and also the name of some software products.

goldsteinq··on Word usage guidance and alternative terms
Single find & replace is exactly what this document tells you not to do, since that's how you get dumb^W suboptimal results like "denylisted" instead of sane^W more clear options like "denied".
goldsteinq··on Unsettling capital letters
Information density of English text is 1ish bit per letter. There was some research about it, and also it's the compression rate you get from state-of-the-art algorithms.
← PreviousPage 3 of 4Next →