HackerTrans
TopNewTrendsCommentsPastAskShowJobs

senknvd

no profile record

Submissions

LuaJIT Uses Rolling Releases

freelists.org
3 points·by senknvd·il y a 3 ans·0 comments

comments

senknvd
·il y a 2 ans·discuss
I don't think RFC 4180 differentiates between an empty string and a null value. As long as you add a check that all string columns are free of empty values before writing you should be good.

I think in polars it's

    df.filter(pl.col(pl.Utf8).str.len_bytes() == 0).shape[0] == 0
although there's probably a better way to write this.
senknvd
·il y a 2 ans·discuss
There is a --word-diff flag in git diff. It can also be customized using --word-diff-regex to possibly match sentences.
senknvd
·il y a 3 ans·discuss
Why would you compare (mostly) military aid to the GDP? Aid from the US has comprised around 15% of Israel's defense budget in recent years and the current bill under deliberation would almost quintuple that sum.

It is the largest recipient of American foreign aid since WW2
senknvd
·il y a 3 ans·discuss
> when throttled to similar wattage (see the section about 35W)
senknvd
·il y a 3 ans·discuss
I find that Flatpaks[1] work really well for getting the latest version of GUI-only apps. For CLI tools and libraries I haven't found a great solution but I make do with an Arch Linux distrobox[2] container.

[1]: https://flathub.org/setup/Debian [2]: https://packages.debian.org/bookworm/distrobox
senknvd
·il y a 3 ans·discuss
From what I've read[1], vim9script was pushed and developed almost exclusively by Bram. With him, a lot of knowledge about its internals and vision for its future dies.

[1]: https://github.com/vim/vim/discussions/12736#discussioncomme...
senknvd
·il y a 3 ans·discuss
> There are also these new image lines, I can't recall the funky name for them, that are even smaller.

You might be thinking of the chiselled images. An interesting idea but very much incomplete[1].

[1]: https://github.com/canonical/chisel-releases/issues/34
senknvd
·il y a 3 ans·discuss
The only models in the X1 lineup that even offer 8GB RAM are the previous generation. The latest X1 Carbon starts at 16.
senknvd
·il y a 3 ans·discuss
According to Notebookcheck[1], if you put a power limit on the 7940HS, it will achieve 15625 points on Cinebench multicore with an average of 66 watts. This puts it above the M2 Max in efficiency and right behind the M2 Pro. Far ahead of any Intel chip.

If you don't want to mess with software power limiting, you'll have to wait for benchmarks of the 7840U.

[1]: https://www.notebookcheck.net/AMD-Ryzen-9-7940HS-analysis-Ze...
senknvd
·il y a 3 ans·discuss
Which Chromebook did you go with? And what tools (IDEs, debuggers, etc.) do you use for development?
senknvd
·il y a 3 ans·discuss
The M2 can't match the 7840HS in CPU performance though[1]. It's half as fast in multi-core benchmarks and a bit slower in single-core.

[1]: https://www.notebookcheck.net/M2-vs-R7-7840HS_14521_14948.24...
senknvd
·il y a 3 ans·discuss
This seems to be true. However, looking at https://rockylinux.org/news/rocky-linux-9-2-ga-release:

9.2 Release for PowerPC (ppc64le) architecture held back

During testing, we discovered an architecture-specific issue on ppc64le systems with the bundled version of Python 3.9. This issue not only prevents installing, but may break existing installations.

This issue is reproducible on CentOS Stream 9 and RHEL 9.2. We have opened a bug report upstream at rhbz#2203919 and are working to fix the issue.


Seems like they hold back releases to do additional testing. In this case, they avoided a bug that was present on RHEL (and presumably AlmaLinux).
senknvd
·il y a 3 ans·discuss
I think the entry Pynchon for people on here is Bleeding Edge. Set during the dot com boom with plenty of references to late 90s tech.
senknvd
·il y a 4 ans·discuss
I first learned about this in high school from "A Basic Just-In-Time Compiler"[1]. It was mind-blowing that you could just cast some data storing machine code to a function pointer and execute it. Trying the program now it seems GCC no longer accepts it with -pedantic-errors because casts between object and function pointers are, according to the standard, implementation-defined.

[1]: https://nullprogram.com/blog/2015/03/19/
senknvd
·il y a 4 ans·discuss
You can do the same with Meson. I just added the warning, debugging, and sanitizer options in-line for clarity. The benefit (I'm not sure if Bazel has this too) is you only have to run the commands once to set up the build directories. After that, you can just use the ultra-fast ninja and almost ignore Meson completely.
senknvd
·il y a 4 ans·discuss
If you're using a decent build system[1], it's trivial to test your code with Clang, GCC, and more:

    export CC_LD=lld
    CC=clang meson setup -Dbuildtype=debug -Dwarning_level=3 build-debug-clang
    CC=gcc meson setup -Dbuildtype=debug -Dwarning_level=3 build-debug-gcc
    CC=clang meson setup -Dbuildtype=debugoptimized -Dwarning_level=3 -Db_lundef=false -Db_sanitize=address build-asan
Now you can just

    ninja -C <name of build folder>
to build any and all of these without affecting your source directory. I usually wrap all the useful configurations in a Makefile-like shell script.

[1]: https://mesonbuild.com/