Better HN
topnewbestaskshowjobs
Log inSign up

stefanos82

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.
Submissions

comment 2w ago · link · parent

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

https://sqlite.org/stricttables.html

comment 3w ago · link · parent

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

comment 1mo ago · link · parent

> 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?!

comment 1mo ago · link · parent

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`

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

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

comment 1mo ago · link · parent

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

comment 1mo ago · link · parent

Here you go https://xcopy.uk/ID_AA_Carmack/status/2113704269274636568

comment 1mo ago · link · parent

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!

comment 1mo ago · link · parent

> Result: musql. Pronounced "muscle."

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

comment 1mo ago · link · parent

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

https://ghost.org/

comment 2mo ago · link · parent

Professionally speaking, at least for me, it's not worth it anymore.

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

It's slow because AI runs continuously behind the scenes tracking you non-stop, if you type, if you navigate, if you click somewhere, and so forth...I have the impression that every single end point belongs to different webservice, because if I refresh it, sometimes it fetches partial data, sometimes it won't pull anything at all, and at random times it works as expected.

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

Ew...that looks so ugly! LOL!

How about `cast<int*>(myage)`?

comment 2mo ago · link · parent

Yeah, I just came here to write "on the other hand though...what about types, such as `(int*)myage`?" and got irritated with myself lol!

I guess I can define my own way of casting with a macro, `castAs(int *, myage);` and that should work just fine.

comment 2mo ago · link · parent

The only thing I would like to see changing is C-style type casting: `(int)myage`

...for some reason, I can't stand this syntax! I find it visually intrusive lol! But if we could allow something like `int(myage)`, it makes it clearer, to me at least.

comment 2mo ago · link · parent

This Stripe behavior has become an epidemic these years...they have fully automated their infrastructure, especially now with AI and they false positively flag the wrong companies and then they complain that people label them as the "baddies".

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

Oh the oxymoron in this announcement...why X exactly if we are not allowed to view thread discussion for free and we are forced to create an X account to do so?

comment 2mo ago · link · parent

> Make it a compiled language with virtual machine similar to Java. The times of recursively creating PHP-files to serve PHP-files are dated (*cough Smarty). Compilation with checks and strict typing will increase the code quality fundamentally.

So...an evolution of Hack language by FaceBook / Meta? https://hacklang.org/

comment 3mo ago · link · parent

I'm curious to learn the reasoning behind this decision...yeah, I presume it's Rust's memory safety mechanism, but other than that, what other reasons are for switching from C++ to Rust?

comment 3mo ago · link · parent

UPDATE: After I posted here, within a couple of hours they sent me an email that "we have verified your information and removed the restriction from your account".

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.

comment 3mo ago · link · parent

The whole situation is getting out of control; they have become completely useless using them nowadays. What's the point, really?

comment 3mo ago · link · parent

Yeah, I feel so stupid for it...I wish they could erase those data of mine permanently from their system. I need to find a way to ask this.

comment 3mo ago · link · parent

That's exactly what frustrated me the most!

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

Just use your browser's devtools to edit the link by replacing `old` to `www` and it should now work.

comment 3mo ago · link · parent

There's also a hosting service for fossil repos which does a really good job for a number of years now https://chiselapp.com/repositories/

comment 5mo ago · link · parent

I have watched the creator explaining to us in great detail how he came up with so many tiny details that made it a perfect game for its time!

Just watch it yourself, you will be in awe!

https://www.youtube.com/watch?v=sw0VfmXKq54

29.

Ask HN: Is Facebook registration procedure broken?

3 points · by stefanos82 · 5mo ago · discuss

12345
30