2,248 karma · joined Aug 15, 2016 (10y ago) · 889 submissions
* I love solving problems.
* I suck at marketing myself.
* I like working on interesting projects.comment 1mo ago · link · parent
Here's what I have replied to you:
To be honest with you, I am not sure how to answer your question.
What I can say is that when you identify bottlenecks within a project -- whether using Cython or mypyc -- the goal is to improve code performance by optimizing the specific parts that impact the project as a whole.
Naturally, the objective is not to replace the entire codebase (switching from Python to Cython), but rather to use the right tool for the job.
In this instance, that tool is mypyc; it requires no changes to your existing code -- it simply generates a Python module that you can then import into your project.
I hope my answer satisfies you, even just by a bit.
comment 1mo ago · link · parent
There are times that it generates faster code than Cython! Of course with Cython you can tweak it and push its limits with various optimizations and other techniques, but for using your existing code as it is and gain massive performance improvements, mypyc it's a must!
Code sample:
import time
def fib(n: int) -> int:
if n <= 1:
return n
else:
return fib(n-2) + fib(n-1)
startTime = time.time()
fib(35)
duration = time.time() - startTime
msduration = duration * 1000.0
uduration = msduration * 1000.0
print(f'{duration:.6f} seconds, {msduration:.2f} ms, {uduration:.2f} μs')
$ python3 mypyfib.py
1.452477 seconds, 1452.48 ms, 1452477.22 μs
$ # the same code compiled with `mypyc mypyfib.py` produces the following:
$ python3 -c "import mypyfib"
0.063701 seconds, 63.70 ms, 63700.91 μs
This is huge, if you think about it! 95.61% reduction in time
2180.15% increase in performance
22.80x faster
[1] https://github.com/mypyc/mypyccomment 1mo ago · link · parent
I don't know whether I'm doing something wrong or not, but it made me appreciate the hard work you and all C3 contributors put on the entire codebase!
comment 2mo ago · link · parent
But personally? I won't stop using technology and I do my best to avoid AI as much as possible.
I like exercising my mind, to develop new ways of thinking and above all, cultivate critical thinking!
If there's no critical thinking, there's no creativity, no arts, no nothing!
comment 2mo ago · link · parent
In conclusion, LinkedIn is dead as we once knew it and has become a massive AI slop, a dating app believe it or not(!), and full of narcissists that have supposedly succeeded in life, trying to convince themselves with their own lies. PATHETIC!
comment 2mo ago · link · parent
I have wrote a public post on LinkedIn addressing this issue of yours and hopefully someone will get notified and help you out.
Now we wait...
Update: I'm in discussion with their Stripe Support department right now.
Update2: ..and now, we wait!
Final Update: They told me, if you have a LinkedIn account, go there and contact "Stripe" account and tell them your issue; "Stripe Support" account will contact you within 5 to 10 minutes and verify your business data so they can help you.
Good luck!
comment 2mo ago · link · parent
So...an evolution of Hack language by FaceBook / Meta? https://hacklang.org/
comment 3mo ago · link · parent
Coincidence? A very weird one!
Clarification: The account was locked for 2 days and as soon as I decided to write here about it TODAY, within 2-3 hours of posting here, they decided to sent an email out of the blue that they have reviewed my account, when I have attempted a request for a review via their helpdesk without any success; during the fill up form process it was redirecting me to other pages with plain data explaining to me what should I do with government ID verification process; that's all.
25.
Ask HN: Dear LinkedIn, do you want to do business, yes or no?
9 points · by stefanos82 · 3mo ago · 8 comments
comment 3mo ago · link · parent
29.
Ask HN: Is Facebook registration procedure broken?
3 points · by stefanos82 · 5mo ago · discuss