HNHacker News
TopNewBestAskShowJobs

tczMUFlmoNk

715 karma · joined March 5, 2022

submissionscomments
tczMUFlmoNk··on After nine years of grinding, Replit found its market. Can it keep it?
Wow, so, connecting these dots:

- reducing headcount by 50% down to ~70 people = firing 70 people

- at a generous estimate of total burdened cost of $1M/person/year, that's $70M/year

- which accounts for a full 5 years of that war chest

- and, moreover, "at its lowest point" suggests that perhaps Replit has expanded headcount again since; the article mentions that it has done some acqui-hires.

Levels.fyi shows Replit salaries in the $200k–300k range, so even at a 2× burden rate, I think that this is probably a significant overestimate of the costs.

Firing 70 people when you have $100 million that you haven't touched, have raised money on top of that, and have many years of runway for the people you fired… comes together to paint a picture that is, imho, less than flattering.

tczMUFlmoNk··on What’s New in PostgreSQL 18 – a Developer’s Perspective
> I imagine the computed column could be indexed or materialized if needed.

The article mentions that "you cannot create indexes on VIRTUAL generated columns".

tczMUFlmoNk··on Semantic Line Breaks (2017)
Well, so I have!
tczMUFlmoNk··on From unit tests to whole universe tests (with will wilson of antithesis) [video]
As a general rule, you should update yt-dlp before using it. They release new versions very frequently to work around new walls on YouTube and other platforms. An update usually solves this kind of issue for me, even if I've updated just a few days ago.

(I haven't tried it today so can't speak to whether this is a complete solution in this particular case.)

tczMUFlmoNk··on Semantic Line Breaks (2017)
There seem to be some locales or styles that use asymmetric spacing. From the Zen of Python—note different spacing based on context and position within the sentence:

    There should be one-- and preferably only one --obvious way to do it.
    Although that way may not be obvious at first unless you're Dutch.
    [...]
    Namespaces are one honking great idea -- let's do more of those!
tczMUFlmoNk··on Unexpected productivity boost of Rust
> And eventually, after we provide alternatives for all of those and some others, we've talked about changing `as` to be shorthand for `.into()`.

Whoa, that could be awesome. It's always felt a bit unfortunate that you can't write `val.into::<SomeExplicitType>::()`—because the type parameter is on the trait, not the method. Of course, `SomeExplicitType::from` works, but sometimes that slightly upsets the flow of code.

Having just `val as SomeExplicitType` might be really nice for that common case. I do wonder if it'd feel too magic… but I'm optimistic to see what the lang team comes up with.

tczMUFlmoNk··on Go is still not good
You put the files in the collection as you open them, and you register the defer before opening any of them. It works fine. Defer should be lexically scoped.
tczMUFlmoNk··on Compiler Bug Causes Compiler Bug: How a 12-Year-Old G++ Bug Took Down Solidity
It seems that the Solidity compiler complains if you do not specify one:

https://stackoverflow.com/questions/68332228/spdx-license-id...

tczMUFlmoNk··on Windows XP Professional
A classic article about a no-delay solution to this problem, not mentioned in the linked thread:

https://bjk5.com/post/44698559168/breaking-down-amazons-mega...

tczMUFlmoNk··on Emailing a one-time code is worse than passwords
I think this means:

1. You go to evil.example.com, which uses this flow.

2. It prompts you to enter your email. You do so, and you receive a code.

3. You enter the code at evil.example.com.

4. But actually what the evil backend did was automated a login attempt to, like, Shopify or some other site that also uses this pattern. You entered their code on evil.example.com. Now the evil backend has authenticated to Shopify or whatever as you.

tczMUFlmoNk··on Poorest US workers hit hardest by slowing wage growth
6% last year here.
tczMUFlmoNk··on Uv: Running a script with dependencies
Well... maybe the people who have stopped working on it due to the mysterious disappearance of 30,000 fundraised dollars, selling paid support but "delegat[ing] the actual work to unpaid volunteers", and a pattern of other issues from other community members who have not spoken up about them.

https://vorpus.org/blog/why-im-not-collaborating-with-kennet...

https://news.ycombinator.com/item?id=19826680

tczMUFlmoNk··on Gmail's backup codes are useless to access account
VPNs are a wholly legitimate way to use the Internet. The onus should never be on a legitimate user to disengage measures that they've taken for their privacy and safety.

In this case, the user has already authenticated with three factors(!). Framing potential VPN use as "suspicious" normalizes a more locked down, surveilled web with fewer rights for humans. We shouldn't be pushing that direction.

tczMUFlmoNk··on AWS Lambda Silent Crash – A Platform Failure, Not an Application Bug [pdf]
At least it is helpfully located in the "Thought Leadership" section as an early flag for the reader.
tczMUFlmoNk··on Colombia seizes first unmanned narco-submarine with Starlink antenna
Fascinating. Does the Starlink antenna work well underwater? Or was this sub surfacing to communicate?
tczMUFlmoNk··on IRS Direct File on GitHub
--amend was added in 2006 :-)

https://github.com/git/git/commit/b4019f045646b1770a80394da8...

tczMUFlmoNk··on A new generation of Tailscale access controls
> Although not sure why that's preferable to converting it once-off, so it's still not something a user has to worry about, but then the old way is done with.

This way also supports users who have scripts or workflows that produce the old form of ACLs. If you had a single cut-off date, those scripts would presumably need to be updated.

tczMUFlmoNk··on Why Blender Changing to Vulkan Is Groundbreaking [video]
Blender 4.2.0 opens to splash screen in about 500ms on my laptop. I have no idea what that number could mean.
tczMUFlmoNk··on Matt Godbolt sold me on Rust by showing me C++
You can write a Rust function that returns `i32` where a negative value indicates an error case. Nothing in Rust prevents you from doing that. But Rust does have facilities that may offer a nicer way of solving your underlying problem.

For instance, a common example of the "integer on error" pattern in other languages is `array.index_of(element)`, returning a non-negative index if found or a negative value if not found. In Rust, the return type of `Iterator::position` is instead `Option<usize>`. You can't accidentally forget to check whether it's present. You could still write your own `index_of(&self, element: &T) -> isize /* negative if not found */` if that's your preference.

https://doc.rust-lang.org/std/iter/trait.Iterator.html#metho...

tczMUFlmoNk··on Feather: A Rust web framework that does not use async
The fact that a request can happily get a mutable reference to a shared context felt suspicious to me, so I ran a quick test, and it seems like the whole server is single-threaded:

    $ cat src/main.rs 
    use feather::{App, AppContext, MiddlewareResult, Request, Response};
    use std::{thread, time};

    fn main() {
        let mut app = App::new();
        app.get(
            "/",
            |_req: &mut Request, res: &mut Response, _ctx: &mut AppContext| {
                res.send_text("Hello, world!\n");
                thread::sleep(time::Duration::from_secs(2));
                MiddlewareResult::Next
            },
        );

        app.listen("127.0.0.1:3000");
    }

    $ cargo run -q &
    [1] 119407
    Feather Listening on : http://127.0.0.1:3000

    $ curl localhost:3000 & curl localhost:3000 & time wait -n && time wait -n
    [2] 119435
    [3] 119436
    Hello, world!
    [2]-  Done                    curl localhost:3000
    real 2.008s
    Hello, world!
    [3]+  Done                    curl localhost:3000
    real 2.001s
That is: when the request handler takes 2 seconds, and you fire two requests simultaneously, one of them returns in 2 seconds, but the other one takes 4 seconds, because it has to wait for the first request to finish before it can begin.

It feels like this has to be the behavior from the API, because if two threads run `ctx.get_mut_state::<T>()` to get a `&mut T` reference to the same state value, only one of those references is allowed to be live at once.

It doesn't quite seem fair to call this "designed for Rust’s performance and safety". One of the main goals of Rust is to facilitate safe concurrency. But this library just throws any hope of concurrency away altogether.

tczMUFlmoNk··on A PostgreSQL planner semi-join gotcha with CTE, LIMIT, and RETURNING
ANY can be used with arrays, particularly query parameters: `id = ANY($1::int[])`, but not `id IN $1::int[]`.
tczMUFlmoNk··on When flat rate movers won't answer your calls
> but for anything that costs over 5-figures it makes sense to have an attorney review it

Can you say more about this? I've never retained an attorney, but it's a skill that I would like to have. What is this process like, to get their services for a short, bounded engagement? How do I get started finding an appropriate provider?

tczMUFlmoNk··on I just want to code (2023)
Not everyone can write it…
tczMUFlmoNk··on Python’s new t-strings
> > I don't think

> Definitely true.

The rest of your comment is valuable, but this is just mean-spirited and unnecessary.

tczMUFlmoNk··on Fintech founder charged with fraud; AI app found to be humans in the Philippines
Relevant: Uniqlo's self checkout, based on RFID tags with a great user experience:

- https://news.ycombinator.com/item?id=38715111

- https://www.wsj.com/business/retail/uniqlo-self-checkout-rfi...

- https://archive.is/ms1ke

tczMUFlmoNk··on Reinventing Feathering for the Vectorian Era
Not just that, but two 1D iterated box blurs, requiring an amount of work per pixel that is constant with respect to the blur radius—as opposed to quadratic for the naive convolution, or linear for the 2D-to-1D transformation with a full Gaussian kernel.

http://elynxsdk.free.fr/ext-docs/Blur/Fast_box_blur.pdf

tczMUFlmoNk··on Show HN: I built a word game. My mom thinks it's great. What do you think?
Since the category is "Games", the answer is [Settlers of] CATAN.
tczMUFlmoNk··on Landrun: Sandbox any Linux process using Landlock, no root or containers
> which makes trying to simply highlight a section of text a fun adventure

Tip: in Firefox, you can hold Alt to drag and select text without triggering links.

tczMUFlmoNk··on Oxidizing Ubuntu: adopting Rust utilities by default
What your link says is correct about `&'static T`, a lifetime on a reference. What GP says is correct about `T: 'static`, a type constraint. They both use the "keyword" 'static, but in different senses.
tczMUFlmoNk··on Boycott IETF 127
Thank you. I am in the U.S. and am threatened by these measures. I'm not a member of the IETF, but I rely on their work heavily, and the solidarity is meaningful.
← PreviousPage 2 of 5Next →