Hacker Newsnew | past | comments | ask | show | jobs | submit | stefanos82's commentslogin

Then declare your table(s) as strict; that should solve your issues.

https://sqlite.org/stricttables.html


But strict isn't supported if you are using exotic data types like DATE or TIMESTAMP

Even with STRICT, explicit CAST() has the same problem.

Full circle! Back to native code and use libraries like Qt, Dear ImGUI, and so forth LOL!

> Co-founder Gonçalo Quadros says the Coimbra company will no longer be the software developer it has been, but will keep making systems for aviation, aerospace and cars that humans must still verify.

Oh my...why I don't believe this statement of his?!


With GCC and `-fsanitize=address,undefined` flag(s) I have catched it during runtime.

I've got a nice `==31604==ERROR: AddressSanitizer: stack-use-after-scope on address`


So many thread replies are saying they are cancelling both their email and VPN accounts lol! Self-destructive tendencies all these hallucinated CEOs!


I think LLMs are showing you what was under the mask the whole time..


we've known CEOs are evil and deluded for decades


If you want to use the same code unmodified *and* your code uses type hints, then you should use mypyc [1].

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/mypyc


This benchmark only measures function call overhead, which is important but not the whole story. What kind of figures do you get with a more realistic benchmark?


No idea why my original reply is not visible, nor marked as [dead]...such a weird behavior by HN!

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.



Believe it or not Lerno, I have tried the C backend using GCC and Clang, and the funny thing is that the result was a bit bigger than the standard backend output; plus, the execution was also ~10% slower too.

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!


The C backend is still experimental and far from ready for prime time, so it's not unexpected!


> Result: musql. Pronounced "muscle."

You mean it's pronounced "muscal", like Mezcal, but with an "ah" LOL!


Also in french it reads "muscle" as well


I guess, muscle is also valid :)


I'm curious...isn't the name `ghost` an infringement between ghost, the app / CMS alternative to WordPress and this project?

https://ghost.org/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: