News for hackers. Stuff that matters.

apd_

Re:The self-fulfilling prophecy of React on Friday September 09, 2022 @02:33AM (#32776000)
What are some other frameworks that you use for comparison?
Re:The self-fulfilling prophecy of React on Friday September 09, 2022 @02:12AM (#32775866)
I believe you're referring to $ not being fired when another $ below it updates the variable the first $ subscribes to. This is an expected behavior. In Svelte the order of $ matters to prevent infinite loops.

In this example the second $ won't trigger the first $:

    let a = 1;
    let b = 1;
    
    $: if (a > 0) { b += 1 }

    $: if (b > 0) { a += 1 }
With React's useEffect one can easily falls into the trap of an infinite re-rendering:

    let a = 1;
    let b = 1;
    
    useEffect(() => {
        b += 1;
    }, [a]);
    
    useEffect(() => {
        a += 1;
    }, [b]);
Great framework are supposed to prevent this kind of loophole.
Re:The self-fulfilling prophecy of React on Friday September 09, 2022 @01:44AM (#32775714)
In which way is React more effective than say Svelte?
Re:Ask HN: Who wants to be hired? (September 2022) on Thursday September 01, 2022 @11:20AM (#32677651)

    Location: Indonesia
    Remote: Yes
    Willing to relocate: Yes
    Technologies: JavaScript, TypeScript, React, Svelte, Rust, Python, Pandas, PostgreSQL, Docker
    Résumé/CV: Available upon request
    Email: hiagusputradana at gmail
I’m the creator of Rust Explorer[1], a fast Rust playground that supports the top 10k crates.

I’d like to join an early stage startup.

I usually work at night between 11.00 - 19.00 UTC. I also consider relocating depending on the offer.

[1] https://rustexplorer.com

Re:Italian watchdog bans use of Google Analytics on Thursday June 23, 2022 @11:48PM (#31857603)
How do you track "visitors"?
Re:Do not combine footers and infinite scrolling on Sunday June 05, 2022 @12:22AM (#31627995)
The site is down. In case you really want to read the entire post, here's the link to the archive[1].

[1] https://web.archive.org/web/20220604230938/https://willfenne...

Re:Stop Whining about Rust Hype – A Pro-Rust Rant on Monday December 20, 2021 @10:32PM (#29633516)
If you're not into selfies, you may ignore the fact that your smartphone has a front facing camera. It may not be for you, but other people do use it.

HN is a tech community, which means there're many programmers here. Some people may use X and also contribute to X, or at least want to dig into the source code.

For example, since I'm a Rust programmer and not an R programmer, I'm more interested in "A fast query engine written in Rust" than "A fast query engine written in R". There're benefits of using a program written in a language you're familiar with. One of them is when you find a bug you can dig into the source code, post an issue which point out which code might cause the bug, better yet post a PR. Instead of "Please help, X failed to do Y."

Re:Polars: Fast DataFrame library for Rust and Python on Thursday December 16, 2021 @08:31PM (#29586590)
> Note also that Julia would be number 1 in almost all of those benchmarks if you were to rank by speed of second run (as expected...).

Not true. If we'd rank them by second run Julia would be:

- On simple query: 1st, 1st, 4th, 1st, 5th (down 1).

- On advanced query: 3rd, 6th, 6th, 4th (up 1), - (out of memory).

> The databases (and spark) will have to read from disk. They have no chance of competing with anything that's reading from ram, no matter how slow it is.

Not true. Upon quick peek on the bench code, ClickHouse and Spark use in-memory table. I assume other engines too.