HN user

pytness

51 karma
Posts0
Comments32
View on HN
No posts found.

From the wiki[0]: "It is believed to be the first compound to have formed in the universe"

They created the molecule under space conditions:

"The experiment was carried out at the Cryogenic Storage Ring (CSR) at the MPIK in Heidelberg — a globally unique instrument for investigating molecular and atomic reactions under space-like conditions [...] They found that, contrary to earlier predictions, the rate at which this reaction proceeds does not slow down with decreasing temperature [...] Since the concentrations of molecules such as HeH⁺ and molecular hydrogen (H2 or HD) played an important role in the formation of the first stars, this result brings us closer to solving the mystery of their formation."

[0] https://en.wikipedia.org/wiki/Helium_hydride_ion#Interstella...

Relevant or not, python 3.13 shows the same thing:

Python 3.13.0: 799.6559143066406 ms

Node 18.20.4: 59.34080000221729 ms

It depends how you measure the time i guess. I would say from 4 hours to 6 hours on an average workday (thats what wakatime says at least).

But is writing code, stopping for reading docs / thinking and continue writing code counted as 1 big unit of coding, or 2 small?

I dont code that much outside of my work anymore, buy i could go for 17+ hours when I was younger.

For being a relatively new language, there are almost no "entry level" positions.

Just take a look at https://rustjobs.dev/. Most of them are well paid remote jobs, but they are asking for +3 years of "professional experience" with rust, "with a proven track record of building and deploying production-quality code", and more. Hell, iirc, i saw one asking for proof of contributions to the rust repo (eg, being a core maintainer).

edit: to be fair, i saw one position a while ago asking to be willing to learn rust

Yes. I was confused by its output, i.e. 2541.91s

Thats the output of the shell command `time` (im using zsh so the output differs from other shells) eg `time cargo build`.

system is the cpu time spent calling kernel functions and user is the cpu time spent outside kernel functions. The time is measured per core, so if the program runs for 2 seconds with 16 threads, the user time would be around 32.

Notice there is a cpu metric (1341% cpu), if you do: (user + system) / cpu * 100 / 60 = ~3.29 minutes = 3m:17s

Yes, in linux there is a file system type called tmpfs which is mapped to memory (most of the time iirc).

Filesystem Size Used Avail Use% Mounted on

tmpfs 31G 22M 31G 1% /tmp

Try running `cargo build --timings`, it creates a report about build times. My guess would be storage speed, i would not expect memory speed to be that much of an issue.

edit:

Windows compilation 8min took less time than Linux 45min?

I dont think i understood this correctly, but in the case you are asking (for clarification) about my compile times, i got around 3m:18s on linux, and around >8 minutes on WSL.

I directly cloned to /tmp. 64GB ddr5, No overclock.

edit: (also, the machine was recently rebooted and had very few processes running)

After i posted the comment i tested on a laptop running windows with wsl (i7-12850HX 16c 24t) and the first build was going above 8 minutes.

I ran `cargo fetch` first to remove the downloading time out of the equation.

Ran on arch (AMD R7 7800X3D).

First build:

cargo build 2574.91s user 79.89s system 1341% cpu 3:17.84 total

After change:

cargo build 11.97s user 1.62s system 176% cpu 7.719 total

After another change, this time with --timings:

cargo build --timings 12.00s user 1.60s system 176% cpu 7.722 total

Unit | Total | Codegen

    1. veloren-server v0.16.0  4.9s  3.7s (75%)

    2. veloren-voxygen v0.16.0  4.1s  2.0s (49%)
...

I am often promptly required to be at my job around the same hour. I have started noticing uber charging what would be a 8$ ride up to 15$ when there is no trafic and the drivers are next to me.

Also, some uber drivers, take your ride while literally not being in the car and wasting your time. Anecdotally, I took an uber one time that was less than 20m from me. After 5 minutes not moving I went to check wth was going on. The driver was talking with other uber drivers. His excuse over text? Police was checking some papers. I literally was unable to get any other drivers because they were the most close to me.

Using percentages as means of manipulating the masses has always been a thing.

"There has been a 1000% increase in traffic deaths this year, we must do something!"

Ah yes, we went from 1 death per year to 11 because there was a fatal bus accident, surely we need to do something.

Is it me or is the description of the algo wrong?

    > Round 1. Keep going through Hamlet, adding new words as you go. If you come to a word that’s already on your list, flip a coin again. If it’s tails, delete the word;
If i follow this description of "check if exists in list -> delete":
    if hash_set.contains(word) {
        if !keep_a_word(round) {
            hash_set.remove(word);
            continue;
        }
    } else {
        hash_set.insert(word.to_string());
    }
The algorithm runs for ~20 iterations:
    Total word count: 31955 | limit: 1000
    End Round: 20, word count: 737
    Unique word count: 7233
    Estimated unique word count: 772800512
But if I save the word first and then delete the same word:
    hash_set.insert(word.to_string());

    if !keep_a_word(round) {
        hash_set.remove(word);
        continue;
    }
It gets the correct answer:
    Total word count: 31955 | 1000
    End Round: 3, word count: 905
    Unique word count: 7233
    Estimated unique word count: 7240

Seems like a yapper. And it makes some wrong(?) assumptions?

  >>> hi
  Hi! It's nice to meet you. Is there something I can help you with, or would you like to chat?
  
  >>> if tilt my head upwards so my face is looking at the sky and I spit, what will happen?
  That's an interesting question!
  
  If you tilt your head upwards so your face is looking at the sky and then spit, a few things might happen:
  
  1. **Spit will go flying upwards**: Since your face is now pointing towards the sky, the trajectory of your spit
  will be upward too. It might even reach the clouds (if there are any nearby) or disperse in mid-air.
  2. **Some spittle might fall back down**: Depending on air currents, wind direction, and the distance between
  you and the ground, some of the spittle might fall back down towards the earth.
  3. **You might get a bit of a face-full**: If you're not careful, some of that spit might splash back onto your
  own face, which could be... interesting.
  
  Remember to be mindful of where you are and who's around when doing this experiment. It's always good to clean
  up after yourself and respect those nearby!
  
  Now, I'm curious – what inspired this question?
EDIT:
  >>> How would the spit reach the clouds?
  I was getting a bit carried away with the imagination there. In reality, it's highly unlikely that your spit would actually reach the clouds.

  Clouds are typically several thousand feet (or meters) above ground level, and even if you were to tilt your head at an extreme angle,
  the spittle would likely be deflected or absorbed by air currents before reaching such heights.

  In practice, the spittle would probably fall back down towards the earth due to gravity, and might land on the ground, a nearby surface, or even get blown away by the wind.

Insurance and banks services are used out of business hours by everyone. You better have people working after pushing to production a friday at 5pm.

If it breaks on my work hours, np, i will revert the deployment. Good luck getting me to revert anything on a weekend.

It also performs better if you tell it to take its time to answer a question. ChatGPT obviously wont halt for 2 minutes thinking about the question, but it still performs better.

Some problems require more than a couple of minutes, money makes people more inclined to resolve the problem as accurate as possible.

Calling ChatGPT capitalist is a bold claim.

I think you completely misunderstood the article, or you have not read it.

The uniqueness from the system comes from the fact that two different numbers will never have the same id.

The pad only works for things like user ids.

You can also change the alphabet it uses so its not case sensitive; using this alphabet: "ABCDEFGHJKLMNPQRSTUVWXYZ0123456789" and a minimum of 8 digits, it will produce 8 digit ids all the way 4294967295 (0xffffffff).

They visited at least two unique pages.

The user has visited A and B on day 1, and A on day 2. So the total page hits is (A, B, A). Remove duplicates and you have (A, B) which makes the sentence true.

Imagine he said:

They bought at least two unique products

What would you expect the requirements to be?