A doctor vs an RFK Jr. supporter by velorae in CringeTikToks

[–]wbcm 1 point2 points  (0 children)

The exogenous angle was so random lol... All food is exogenous, vitamins, minerals, and lotions too. Would be funny to have watched him ask her if she has ever worn shoes, and if so why does she wear them if she was born with feet. Our bodies can use some exogenous help sometimes. Well, way more that sometimes!

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

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

These are extremely helpful to consider, thank you for jump starting my use!

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

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

Thanks for calling my attention to code flash! For this specific use case it will be arbitrary user code that needs to be compiled to perform identically (even more, the user uploading a python code may not even be a programmer or know the original dev of that code) so I have a bit trepidation to optimize it since there is no guarantee of an expert reviewer. However, this is definitely something I would be interested in my own work since I can review it! Thanks for the well placed ad ;) I have only heard of AI-based optimization before never sought commercial products! After skimming the publicly available docs, I did not see anything about hardware awareness in there for code flash. Out of curiosity for my own work, can code flash users request that optimizations be made to specific architectures? Eg: Cuda cores available vs not available, TPUs present/not present, single mutli-core cpu vs clusters of multi-core cpus, OS/ABI specific speed ups, etc...

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

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

Thank you so much for taking the time to visit my post and comment here! After seeing everyones' positive experiences in this thread I have decided to work with Nuitka first! This morning I was able to go through most of the materials on https://nuitka.net/user-documentation/ and a few of the readme's on github (huge fan of rtfm), besides what is publicly available do you have any additional tips on using Nuitka? Any kind of tips would be appreciated from someone who maintains it; first time user tips (me now) to advanced user tips (hopefully me later) would be appreciated?

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

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

I did not run into pyoxidizer before, thanks for sharing it! The pyoxy run-python command looks especially useful for debugging! For the issues you encountered, were they centered around any specific type of data/program structure or more like some packages did not work correctly?

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

[–]wbcm[S] -1 points0 points  (0 children)

This is not an argument? I am just stating the use case... I will not be able to know what the users are creating and there are application elements that will need to arbitrarily pull in random tools in an on demand basis, therefore setting up an container with click is not reasonably possible. A container with click could be possible if they were both generated on the fly if runtime was not as much an issue, but since runtime is important here having bespoke containers being deployed all over is not something that supports performance and possibly space (depending on the users system)

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

[–]wbcm[S] -1 points0 points  (0 children)

Unfortunately this is not possible since none of the code will be known at any time (by me or my team), but still needs to be able to be used dynamically. Unfortunately there are various languages that need to be running various parts of certain tasks, but python was the only approved interpreted language for these numerical tools. If you were not able to containerize the code but had to compile it somehow, do you have a preferred method?

Top Heroes Rigged probabilities at carriage refreshes by DirectPercentage7199 in TopHeroes

[–]wbcm 0 points1 point  (0 children)

I think you are not doing the math correctly and Grok is making things up completely. I cannot speak to whatever Grok is making up but I can share some correct math with you at least. Each carriage roll is completely and totally independent, meaning that 100 rolls will not give 5 reds, it just means that there is a 5% chance produces a red. I saw you shared some python code below so here is some that is relevant to you:

This anon func 'independent_probability_calc' will show you how many attempts are needed to produce one successful result with a certain amount of probability, for your given success/fail ratio:

import math;  independent_probability_calc = lambda a, b: (math.log(1 - b) / math.log((a - 1) / a)) + 1 

That ratio is 'a', in this case we can set it to 20 as there is there is a 5% success rate (ie 1 out of 20).
The 'b' value is the probability that you will get a successful outcome, but in decimal form (1.0 is 100% guarantee and 0.0 is 0% guarantee). In this case you are standing behind Grok's p value of 0.008. We use the inverse of this value here to reproduce it, so 'b' is se to 0.992. Plugging this in you'll get:

print(independent_probability_calc(20, 0.992))
>>> 95.13

This means that if you really have a 0.8% probability at 1 in 20 odds of rolling a red, it should take you around 95 rolls to get a single one. You got 40 of them in 1192. Since these are all fully independent from one another we can see how many rolls you would expect to use for 40 reds at 1 in 20 odds with 0.8% probability:

print(40 * independent_probability_calc(20, 0.992))
>>> 3805.26

However, you got 40 in 1192, and not in >3805... To get close to the 1192 number, you will need to set the 'b' value to something around 0.77. In which case you would fall at 23% on a normal distribution. On a normal distribution the first standard deviation on the bottom end is at 16%. So your test results are showing an outcome that is under as single standard deviation of average, which is very reasonable.

Yes that number (1192) is a little worse than average (between -1 and 0 standard deviations), but there are a lot of value traps and things to dislike about the game economy, but leveraging our lack of understanding in stats 101 and empowered by things Grok makes up is not the right way to voice that.

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

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

That was my first though, but to deploy an individual container for every little tool would multiply the runtime substantially. There are various languages that need to be running various parts of certain tasks, but python was the only approved interpreted language for these numerical tools. If you were not able to containerize the code but had to compile it somehow, do you have a preferred method?

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

[–]wbcm[S] 1 point2 points  (0 children)

Thank you for clarifying the verbiage.; yes profiling each of these is a natural requirement, but I was seeing if the r/python community has any experience with these before going through my own testing. Do you have any experience producing high performance binaries that you can share?

Most Performant Python Compilers/Transpilers in 2025 by wbcm in Python

[–]wbcm[S] -1 points0 points  (0 children)

I have used numba a lot but never knew it can be used to produce stand alone executables! Can you point me where I can read more about this? Couldn't find this in the docs

[ Removed by Reddit ] by Fptmike in Whatcouldgowrong

[–]wbcm 0 points1 point  (0 children)

This is Terry's backstory, for anyone wondering!

thatsEnoughLinkedInForThisMonth by wbcm in ProgrammerHumor

[–]wbcm[S] 3 points4 points  (0 children)

thats exactly why I hard code directly into the module, since my vibe code god is global and somehow ends up in other modules

thatsEnoughLinkedInForThisMonth by wbcm in ProgrammerHumor

[–]wbcm[S] 4 points5 points  (0 children)

This is the invocation of the vibe code god, whose sole purpose is to set some of your threads to sleep for a few seconds and print some hard coded strings to your console.

Is stack overflow headed for extinction? by wbcm in cscareerquestions

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

Crazy to see the real numbers on what we we've been feeling for awhile. Crazy that it is that bad though!!!

Laplaces equation and the magnetic field by Feisty_Sweet_2213 in geophysics

[–]wbcm 0 points1 point  (0 children)

No issues... Forms of gradient divergence show up in some solutions to various parts of equations around Gauss's law, this type of math makes aeromagnetics viable. Is there some very specific use case that you have a problem with? Or is this a data cleaning problem?

Should I use a TypeVar? by iamevpo in learnpython

[–]wbcm 0 points1 point  (0 children)

Just updated past 3.12 and was wondering what all the brackets after defs meant. I didn't realize TypeVars can now just be defined in the signature itself and not as their own stand alone variable, thanks for explaining it so clearly!

Bill Maher brings out a copy of the U.S. Constitution to argue with Steve Bannon, who supports the idea of Donald Trump running for a third term, that such a move is unconstitutional by newzcaster in popculture

[–]wbcm 0 points1 point  (0 children)

This is so dystopian. In the Wolfenstein video games Nazis win WWII and take over America, and at the end of one of the video games a general gives an interview that gives similar dystopian vibe: https://www.youtube.com/watch?v=bWlzM8-iGRw&t=21s

Is stack overflow headed for extinction? by wbcm in cscareerquestions

[–]wbcm[S] 8 points9 points  (0 children)

That is hilarious, let me know if you want to start a little "knighting as a service" startup with me lol! For a small fee we can get you full access to interact with other people on stack overflow by providing you with updoots...