Live data from Hacker News

Viewing profile — ahgamut

ahgamut

HN member
Joined
Fri, Jan 03, 2020, 8:19 AM UTC
HN karma
639
Public activity
62 items

About ahgamut

I like programming with numbers.

I regularly use Python (numpy+, pytorch), C, some parts of C++, and now R. I would like to explore J further.

username at gmail dot com. I have the same username on Github.

Recent public activity

  1. comment
    Comment #44381552

    My early contributions to https://github.com/jart/cosmopolitan were focused towards getting a single-file Python executable. I wanted my Python scripts to run on both Windows and L…

  2. comment
    Comment #40041398

    most likely before v2 as well. The original post is from July 2021, which is a bit after Cosmopolitan Libc's v1 IIRC.

  3. comment
    Comment #40041335

    My 4-core computer's probably building Cosmopolitan Libc in the background + the Python binary is 2.7 unoptimized. This blog post is originally from 2021.

  4. comment
    Comment #40041302

    I've tried nuitka before, and a recent question that occurred to me was: does nuitka have an option to output just C files? Something like: python -m nuitka example.py --no-compile…

  5. comment
    Comment #40041217

    Hey, this is my post from 2021, when I was testing Python2.7 and Python3.6 with Cosmopolitan Libc on an old 4-thread Haswell. It's now a lot easier to build Python (and gcc, gnu co…

  6. comment
    Comment #39437066

    > new methods of communication with the compiler have been established. From what I understand, this appears to a be separate binary from GCC/Clang that does static analysis and ou…

  7. comment
    Comment #38842428

    > Instead, many have deeply underestimated LLMs, saying that after all they were nothing more than somewhat advanced Markov chains, capable, at most, of regurgitating extremely lim…

  8. comment
    Comment #38108140

    What packages do you use in your app? If you're not using too many C extensions, it may be possible to build your app with Cosmopolitan.

  9. comment
    Comment #38105526

    Try it out! We got Lua/LuaJIT, Python, PHP, and Rust building (the latter two are not fully automatic yet), so Ruby might be possible even now.

  10. comment
    Comment #38105204

    https://github.com/ahgamut/rust-ape-example My above repo contains example with the Rust standard library that build as fat executables with Cosmopolitan Libc. I also got ripgrep t…

  11. comment
    Comment #38103827

    Yes, so pip works because the Python APE has OpenSSL built-in. pip install requires modifying the APE, so I end up installing pure-Python libraries as follows: mkdir Lib ./python -…

  12. comment
    Comment #38103471

    The "/zip/" folder refers to the ZIP store inside the actually portable executable -- you can run `unzip -vl ./python` to see what's inside. Also, to add new pure-python packages, …

  13. comment
    Comment #38080789

    Thank you Gregory for writing this post. There have been a bunch of announcements about "setup.py has been deprecated", but few have clearly outlined how to move away from setup.py…

  14. comment
    Comment #37376707

    One of the comments in the OP: I believe the problem is that bridge in the US (not true in some other countries) lacks a "critical mass" of 20 and 30 somethings. I like to play bri…

  15. comment
    Comment #36916301

    "Python 4, but not really", because we want to squeeze out more multithreading performance and be cool again. Some questions from reading the OP: - How much does performance improv…

  16. comment
    Comment #36724127

    I had tried to build a bunch of different codebases (git, bash, gcc, curl etc.) before trying busybox, and I'd never seen code like that before. Plus that error came alongside a co…

  17. comment
    Comment #36724025

    New constants do make compilation a lot easier, but my personal opinion is that the overhead to convert to/from the old constants during runtime is too much. Look at the list of co…

  18. comment
    Comment #36723775

    > I highly doubt many would be willing to rewrite the world to make some "clever hack" work. I specifically wanted to avoid rewriting the world in order to port established codebas…

  19. comment
    Comment #36723478

    Yeah I found out I got banned when attempting to comment about this blog post. I rarely comment on online forums anyway, because I find I don't know enough to comment about most to…

  20. comment
    Comment #36720571

    Right now I use the gcc, git, vim, and ninja APE binaries on my local system for daily work, and so far I have seen no visible regressions. I agree with you though -- an extensive …

  21. comment
    Comment #36720442

    Reading the GCC source code was fun and educational, and I'd love to find out if this could patch make it into GCC. Haven't discussed it with any of the GCC developers yet. In the …

  22. comment
    Comment #36720408

    I haven't used Nim much, but I remember a repo on Github had setup a build script for compiling Nim with Cosmopolitan Libc. https://github.com/Yardanico/cosmonim This gcc patch mak…

  23. comment
    Comment #36717720

    I did that last year :) https://github.com/ahgamut/rust-ape-example Also got ripgrep to work: https://github.com/ahgamut/ripgrep/tree/cosmopolitan Might need to update the build sc…

  24. comment
    Comment #36717637

    I added a comment mentioning this, but it hasn't changed yet. I expect it will change soon. Perhaps I can ping @dang from here?

  25. comment
    Comment #36717562

    SIGILL is for "illegal instruction", according to https://man7.org/linux/man-pages/man7/signal.7.html I too thought it was a typo when I caused it to occur while building BLIS, but…