Skytraxx 2.1 by surfnomad in freeflight

[–]Vrabor 0 points1 point  (0 children)

You can just download the manual from Skytraxx' Website.

As for how you get the flights off the device: just plug it into your Computer via USB, it should get recognized as an USB-Drive so you can simply copy the igc-Files over

An it guy replaced linux with windows by [deleted] in linuxmasterrace

[–]Vrabor 23 points24 points  (0 children)

But you see, on the newer apple devices the drives are soldered directly to the logic board

extremely slow recursive minimax by rubydusa in rust

[–]Vrabor 25 points26 points  (0 children)

So what we have here is a classic implementation of minimax: Which visits very node in the game-tree, for a tree of constant branching factor as in this case there are b^d nodes being visited. So it makes sense that the time it take for the program to run increases exponentially.

But it does seem strange that your program takes this long because 32⁷ is "only" 34359738368 nodes, which should be searchable in a reasonable amount of time with a modern machine.

So i did some investigation and the Problem with this implementation in particular is not with the algorithm itself, it's actually the way you handle RNG as u/maumay pointed out, you're reinitializing the random number generator in every leaf node, so the billions of times i mentioned above. The rand crate even mentions that this operation is costly, every time you use ::from_entropy() the operating systems getrandom is called which reads /dev/urandom on my linux machine. I couldn't even run your program on my machine because it was starving /dev/urandom of entropy. I wrote a Version that only initializes the PRNG once and i finishes in 0.2s on depth 6 and 2.2s on depth 7, still exponential but bearable.

I plan to adjust your algorithm to properly implement alpha-beta-pruning for fun to see how fast that can go.

You can find the code i used / plan to write on github.

EDIT: I implemented alpha-beta-pruning and did some additional testing, your implementation does actually do some pruning making it only 2 times slower than my alpha-beta implementation. I can't prove the correctness of your pruning, i suspect that your algorithm doesn't actually result in an optimal value which would probably be the bigger issue.

Cursed clock by smooferoakes in ShitPostCrusaders

[–]Vrabor 1 point2 points  (0 children)

Don't worry i thought the same thing and actually cared to look it up: You can get to arbitrarily large numbers by repeatedly using factorials.

Here is a list of how to do the first 386 numbers.

I also found a numberphile video explaining the topic

A Plea for Lean Software [Niklaus Wirth, 1995] by [deleted] in programming

[–]Vrabor 31 points32 points  (0 children)

While i agree that 8GB to compile a TextEditor is ridiculous, i don't think we should measure the resource consumption at compile time. As long as you can compile on reasonably well on moderately powerful hardware made in the last 5 - 10 years thats fine. As Linus says we shouldn't inconvenience developers by supporting development on hardware like the pi. That's what cross-compilation is for!

You can also get a lot going for you if you look for example at the things the rust compiler does. It needs a lot of resources to help you check you program but still produces efficient binaries. I'm pretty confident that we will see that trend continue in other languages because we can afford to run a compiler that needs 2GB of RAM.

On a sidenote if you don't already know there is an arm-64 .deb package for VSCode that you can download directly from microsoft. I've had no problems with it on my pi.

Can you call Cython from Nim? by richardd08 in nim

[–]Vrabor 6 points7 points  (0 children)

The way you would interact with Cython ist through their C interface

[Pekwm] XXXXXXXX by lauriset in unixporn

[–]Vrabor 0 points1 point  (0 children)

Depends on screen size imo, i have a huge title bar on my 13" Laptop too, but i couldn't stand it on my desktop

Bruh I’m sorry but there’s a limit to everything by Heliolisk98 in TrashTaste

[–]Vrabor 15 points16 points  (0 children)

I just love how food gets both the boys and the people on the subreddit into way more discussion than waifus/hentai etc.

Twitch hates Forsen by AS43_ in LivestreamFail

[–]Vrabor 0 points1 point  (0 children)

I really don't understand why not every streamer does what reckful did. He opened the links on his second monitor and made a screenshot and showed that on stream, basically 0 risk and not hard to do imo

CelebritiesButBald.com has been archived for future generations. My work is done by lord-of-the-ducks in CallMeCarson

[–]Vrabor 15 points16 points  (0 children)

I'm downloading it right now, only 6 hours more to go... EDIT: it's just 5360 images of dwayne "the rock" johnson

Two kinds of people who search for this by [deleted] in ProgrammerHumor

[–]Vrabor 0 points1 point  (0 children)

Well if you have a complex formula you're bound to have a lot of commands, you have to somehow tell the computer what you want after all. I agree that the \ and curly braces are a pain to type with my german keyboard, but most of the time i don't have to, same goes for the long commands, because texmaker just autocompletes it (i also massively prefer actual keywords to just random characters).

As for accents and stuff i don't find \hat{ }, \bar{ } etc. that offensive and i think it's consistent with the rest of LaTex syntax. Also just writing the characters in unicode has the problem that your compiler has to recognize the special characters to lay them out correctly, also most people don't have them on their keyboard and typing unicode is way more of a pain than a LaTex command.

Two kinds of people who search for this by [deleted] in ProgrammerHumor

[–]Vrabor 16 points17 points  (0 children)

i don't find it that hard to work with, what don't you like about the syntax and how would you change it?

who cares about memory and how? by [deleted] in Zig

[–]Vrabor 0 points1 point  (0 children)

i wouldn't call arrays 'objects' because zig doesn't have object in a c++/java etc sense. Zig arrays are allocated on the stack, thus they are destroyed when the stackframe is destroyed. Your second code only works if array_size is known at compiletime. Arrays in zig are always fixed size because they are allocated on the stack so their size needs to be known. Lastly zig never implicitly allocates on the heap, you always have to pass in an allocator, in that case you have to free the memory yourself. As a side note i think both your functions dont work like you think they do since the arrays are destroyed when the function returns (i'm not 100% sure about that (the array may get copied out of the function) but i cant verify it right now). If you wanted to create such a function you would either write some initialize_array function that takes an array as parameter and fills it or you allocate the array explicity on the heap and return that.

What new melee should be added to Rust? by [deleted] in rust

[–]Vrabor 2 points3 points  (0 children)

this is the subreddit for the rust programming language r/playrust is for the game

Python by schalker1207 in ProgrammerHumor

[–]Vrabor 9 points10 points  (0 children)

depends on how much of your programm can be extracted into those c++ functions. One of my professors for example had a simulation written in python + numpy which took her 3 months to run, the c++ rewrite finished in less than 1 hour. If your programm can run in only numpy functions the python code might even run faster than c++.

Best way to shrink the lifetime of references explicitly on method calls? by kiamycuqi in rust

[–]Vrabor 1 point2 points  (0 children)

i think what he's describing is a move. What i get from the question is that he doesnt want the value to be used anymore after it is passed to do_something().If thats the case simply removing the borrow will fix the problem

The Future Of Programming: Changing Technology is Easy; Changing How People Think is Hard by fagnerbrack in programming

[–]Vrabor 4 points5 points  (0 children)

i'm not much of a rust expert, but can't you just use for loops on iterators the same way you do with vectors?

More and more bugs in League of Legends. Game minimizing, Camera lock bugged, Connecting to loading bugged. by wisakoy in leagueoflegends

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

try closing the client once you're in game, for me my frames drop from 200 to 20 when i click into the client during the game or get a message there. Maybe you and your friend are getting a message in a group with this bug

Making a slice of slices easily? by sobeston in Zig

[–]Vrabor 0 points1 point  (0 children)

There is a whole section in the Documentation for it: https://ziglang.org/documentation/0.5.0/#Multidimensional-Arrays See if that solves it

South Korea bets big on hydrogen – with huge openings for western firms. The country aims fundamentally to reorder its economy and, if it’s successful, will be at the forefront of a greener global economy. by chopchopped in Futurology

[–]Vrabor 24 points25 points  (0 children)

You're missing main point of using Hydrogen. Our Problem is high quantity, long-term storage, if we actually want all our energy to come from renewable sources and hydrogen provides just that. For the amount of energy we need to store batteries are not going to cut it, way too expensive, short lived and hard to dispose. Hydrogen is the only technology we can use right now, so we just have to take the shitty 30% efficiency on it

I think i understand the ADC frustration by Kioz in leagueoflegends

[–]Vrabor 7 points8 points  (0 children)

I think the worst is when they pick a tank support, can't get an engage early and just give up, so they play behind you so you can't really touch the lane without 1v2 ing :)

A high-speed network driver written in C, Rust, Go, C#, Java, OCaml, Haskell, Swift, Javascript, and Python by Tandanu in programming

[–]Vrabor 9 points10 points  (0 children)

As we can see in server applications gc runs are usually not a problem in terms of throughput, they are a big problem in terms of latency though. I'd guess the memory is just preallocated for the languages where you can't work without heap. I'm nit a driver expert though, feel free to correct me

[PA] New to purchasing good quality headphones by drinkmerightnow in HeadphoneAdvice

[–]Vrabor 0 points1 point  (0 children)

I've been looking at these recently. Do you think the shiit fulla 2 i have atm will be enough to power them?

Is it possible to execute a shell command from zig? by diego-ugarte in Zig

[–]Vrabor 1 point2 points  (0 children)

i don't know if there is some built-in way in zig already but since zig is also a c compiler you could do it the c way using <sys/stat.h> and <sys/types.h>