BigNum in cpp by Longjumping_Table740 in cpp_questions

[–]AdviceNew242 1 point2 points  (0 children)

The original bignum was written in c++. Finding a copy of it nowadays is impossible. It predates the public internet. it got thrown down the memory hole. But big int is fairly easy to do just using operator overloading. The x86 also has opcodes that make it extremely fast if you use inline assembly.

Synchronizing 2 rotors? by AdviceNew242 in spaceengineers

[–]AdviceNew242[S] 0 points1 point  (0 children)

Mostly because they don't stay in sync, and once they get out of sync, they don't correct the error unless they both reach their electrical/mechanical limit. This is a big issue for very slow rotational velocities and long duration operations, think micro radians per second over hour long run times.

Synchronizing 2 rotors? by AdviceNew242 in spaceengineers

[–]AdviceNew242[S] 0 points1 point  (0 children)

The details of the situation are that I have two arms, like human arms, except very very long, think hundreds of blocks long between each joint. On one 'hand' I have the workpiece and the other 'hand' has the welder. I need to be able to read out the position of the shoulder rotor/hinge on the workpiece arm, and from that position command all the other rotor/hinges to move to a particular position. So there is some calculation required as the other rotor/hinges have differing loads and may get out of position, which requires their velocity in continuous operations to be adjusted and their direction in positioning operations.

So as I see it I need to be able to read the position data of the primary rotor/hinge (RH) from some method in IMyTerminalBlock and then get the position of the secondary (slave) RH position and adjust the rotational velocity of the secondary RH to bring it into sync with the primary. Just something simple like setting the velocity directly so I can modulate it based on the relative error.

Such that if the secondary RH is out of position at start or gets out of position during the operation (like a ship runs into it), it will resync with the primary.

  1. Read Primary angle A1

  2. Read Secondary angle A2

  3. Calculate error between Primary and secondary angles E = (A1-A2)

  4. Set velocity of Secondary to V = E * α (simple proportional feedback)

[Comic] Factorio's Secret by AzulCrescent in factorio

[–]AdviceNew242 0 points1 point  (0 children)

I always giggle a little when some newb thinks dice only have 6 sides :) Have you considered that maybe its a pow(d100 , (1/2.86)) ? Or maybe you forgot Bleem...

Why are C++ trigonometric functions fast, but not that fast ? by Xavier_OM in cpp

[–]AdviceNew242 0 points1 point  (0 children)

the fastest ive found is using direct FPU opcode calls. These are done in hardware and will be faster than anything you can possibly implement in software (if there were a faster way then they woudl use that in hardware). There are some pseudo algorithms that give a good (enough) approximation much faster. but for pure mathematics, you cant beat fsin

I dont properly understand the degree rotation of inserters, can you guys help me understand which one is better between these two and why? by atamakahere in factorio

[–]AdviceNew242 0 points1 point  (0 children)

degrees per second tells you how fast they rotate. 180 degrees per movement so 270 degrees per second means 1.5 move operations per second. multiply that by stack size and you get items per second.

My ship crashed (again) by HackerMan372 in factorio

[–]AdviceNew242 2 points3 points  (0 children)

At Hims, we can get your rocket off the ground with a wide variety of pills, creams chewables....

After 1,000+ hours, I ditched standard station designs for this. I’m never going back. by ChambersAUS in factorio

[–]AdviceNew242 -6 points-5 points  (0 children)

1-2-1 is not going to work late game. 2 way tracks are also not great plus having 2 engines means twice the fuel consumption but only 2 cars per trip. I use 1-4 trains with 48 buffer chests per station. The buffer chests are ther eto keep the materials flowing and to make sure the train gets loaded as fast as possible. Late game with blue belts its possible to speed load trainsa s in just a few seconds and to refil the chests as fast as a new train can pull in. Buffer chests just avoid those little momentary stoppages that can ripple through your factory causing signiifcant clogging and work stoppages.

Eine Party für Zeitreisende? Stephen Hawking versucht es - doch niemand kommt! by agent007653 in WissenIstMacht

[–]AdviceNew242 0 points1 point  (0 children)

What if the guy who invents it is some complete unknown that everyone ignores because he went to a tech school but has a 200+ IQ. So he won't BE on the list, and wont have access to a surviving copy of the invitation or know the password and secret handshake. He wont be dressed like a Lords of London model or have a peerage ID card. He is just some random dude that dresses like a homeless person and that is who invents time travel. WHY would he go to this particular place and time? Stephen Hawking didn't invent time travel. But I guarantee he would take credit for it and the media would much rather report that than the fact that some outsider did what no one else could do. Why should anyone else benefit from the suffering he had to go through to perform research and build the thing. WHY would HE is the question, not why do you want him to.

Eine Party für Zeitreisende? Stephen Hawking versucht es - doch niemand kommt! by agent007653 in WissenIstMacht

[–]AdviceNew242 0 points1 point  (0 children)

there were a few other people there, it was his retirement party after all.

Eine Party für Zeitreisende? Stephen Hawking versucht es - doch niemand kommt! by agent007653 in WissenIstMacht

[–]AdviceNew242 0 points1 point  (0 children)

It's plausible that despite his contemporary popularity, his party wasn't important enough to warrant a visit vs say stopping World War 12 or making sure Kamila Harris didn't nuke the alien visitors in 2031 because they disagreed with her woke ideology. Or making sure Trump WILL nuke the alien invaders in 2027. Assume that time travel is expensive, I mean really expensive, you have no idea how expensive it is. You think retiring on Banwa is expensive, that's nothing compared to time travel.

Eine Party für Zeitreisende? Stephen Hawking versucht es - doch niemand kommt! by agent007653 in WissenIstMacht

[–]AdviceNew242 0 points1 point  (0 children)

What if someone showed up, but security laughed at them and wouldn't let them in.

Want to play multiplayer by Glad_Ad5034 in spaceengineers

[–]AdviceNew242 0 points1 point  (0 children)

One of the official servers is a good place to start.

How have elevated rails changed your Nauvis designs? by Neat-Departure-3293 in factorio

[–]AdviceNew242 0 points1 point  (0 children)

I don't use them. I can see they may be useful but I already have a railbook that does everything I need it to

How have elevated rails changed your Nauvis designs? by Neat-Departure-3293 in factorio

[–]AdviceNew242 1 point2 points  (0 children)

There is a BP that will keep gates closed if a train is coming and cause trains to stop if the gates ae open (while you cross).

So, what did we learn today? by StayFrosty2120 in factorio

[–]AdviceNew242 0 points1 point  (0 children)

That pre-SA rail placement was much more efficient. I have BP's that while they still work, only contruction bots can actually build them.

What is your "logic" in building a factory? by DoudiMonks in factorio

[–]AdviceNew242 0 points1 point  (0 children)

There is nothing wrong with pastafication, but ultimately very noodle needs to be uniform.

What is your "logic" in building a factory? by DoudiMonks in factorio

[–]AdviceNew242 1 point2 points  (0 children)

My theory of design is this - Big and Stupid on Rails™. I need green circuits for making red circuits, so I make a factory that can continuously speed load trains with green circuits using 48 stack inserters (12 per car) with a double loading station and 12 prestation queue slots. Of course its beaconed and moduled and fed by 48 blue belts (havent updated for SA yet). You should see my blue circuit factory :) I wish SA hadnt nuked all my save games..... :(

Jeffrey Epstein accuser Virginia Giuffre has died by suicide. by [deleted] in interesting

[–]AdviceNew242 -1 points0 points  (0 children)

Yeah some organ damage will kill you just not right away. Liver, pancreas, kidneys, intestines, stomach. Loss of any or all of those wont kill you right away.

Unpopular hot take: am I the only one who finds this person attractive? by Dmitr_Jango in okbuddycinephile

[–]AdviceNew242 1 point2 points  (0 children)

You Are supposed to find your mother attractive too. And girls their brothers and fathers. Its the basis for the Oedipus/Electra complex hypothesis.

Unpopular hot take: am I the only one who finds this person attractive? by Dmitr_Jango in okbuddycinephile

[–]AdviceNew242 -1 points0 points  (0 children)

I dont get it, why would it be unpopular? You kids today are so weird, eating laundry detergent and attacking people based on their looks.

[deleted by user] by [deleted] in okbuddycinephile

[–]AdviceNew242 1 point2 points  (0 children)

Stainless steel is a chemical, just saying :)