HNHacker News
TopNewBestAskShowJobs

grimgrin

1,753 karma · joined July 15, 2012

https://github.com/shmup
submissionscomments
grimgrin··on GPT-4 Designed a Programming Language
they asked why the author described it as such. i wondered the same, failing to see the python influence gpt4 intended
grimgrin··on Guide to Java Virtual Threads
> The problem with platform threads is that they are expensive from a lot of points of view. First, they are costly to create. Whenever a platform thread is made, the OS must allocate a large amount of memory (megabytes) in the stack to store the thread context, native, and Java call stacks. This is due to the not resizable nature of the stack. Moreover, whenever the scheduler preempts a thread from execution, this enormous amount of memory must be moved around.

There are a few issues and inaccuracies in this statement.

While it is true that platform threads can be expensive in terms of resources, the claim that the OS must allocate "megabytes" of memory for the stack is an exaggeration. The actual size of the stack depends on the operating system and the specific implementation, but typical default values range from a few dozen kilobytes to a few hundred kilobytes, not megabytes.

The statement implies that the entire stack is moved around when the scheduler preempts a thread from execution. This is not accurate. When a thread is preempted, the operating system saves the context of the thread, which is a relatively small amount of data, including the values of the CPU registers and the program counter. The stack itself is not moved around during this process.

It is not correct to say that the stack is "not resizable." While the default stack size is set by the operating system, many programming languages and operating systems allow you to specify the stack size when creating a new thread. However, it is true that once a thread has been created, its stack size typically cannot be changed.

Sent from OpenAI.

grimgrin··on Learn Vim (2021)
The very first sentence of wikipedia: "Vim (/vɪm/;[5] a contraction of Vi IMproved)"

I see a way to get "VIM" out of that.

Though it looks like originally, in 1993, you'd have read: "Vi IMitation":

https://groups.google.com/g/comp.sources.misc/c/Q34bWDtDIM8

grimgrin··on Jupyterlab Desktop
yeah peep this introductory blog post

https://devblogs.microsoft.com/dotnet/net-core-with-juypter-...

https://github.com/dotnet/interactive

grimgrin··on Math breakdown: Anime homing missiles
And here's 20 minutes of Itano Circus

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

grimgrin··on Ask HN: Those making $0/month or less on side projects – Show and tell
instant search is easily my favorite way to experience steamdb

to those who haven't used the tool (listed at bottom of page), it can be great for discoverability with a ton of filters, and quick responses

https://steamdb.info/instantsearch/

grimgrin··on The i3-gaps project has been merged with i3
in case this thread becomes informational for interested folks:

fedora lists a page of images with alternative desktop environments baked in and i3 is one

https://spins.fedoraproject.org/en/

grimgrin··on Americans duped into losing $10B by illegal Indian call centres in 2022: report
similar story for me a year ago. grandpa got a call that i was in jail for hitting a car and the driver was pregnant. lost her baby. they even had “me” talk to them briefly which really got em believing. he went to bank and mailed $9500 in cash, to what ultimately appeared to be an airbnb

was v sad because he felt supreme humiliation over the matter.

grimgrin··on Keyboard shortcuts for GNU Readline
ctrl+r is great

so is modifying your inputrc so you can still use up arrows but filter the options by first typing a bit of text

i.e. $ find <up arrow to just show lines starting with find>

tada:

    $if mode=emacs
    "\e[A": history-search-backward
    "\e[B": history-search-forward
    $endif

I do a bit more in that if block, but trimmed it down to make a point
grimgrin··on Notmuch – Just an email system
“just a dash of” css would help the user not have to stretch-zoom the website, and then have to pan left and right because the text doesn’t dynamically wrap?
grimgrin··on Lisp Game Jam 2022
> Lisp Game Jam is a recurring game jam taking place for a full 10 days. After the jam has finished, 3 days are given to everyone to try out the game submissions and vote for their favorites.

Check out 2021's results:

- https://itch.io/jam/autumn-lisp-game-jam-2021/results

- https://itch.io/jam/spring-lisp-game-jam-2021/results

Here's a list of previous years:

- https://github.com/lispgames/lispgames.github.io/wiki/Lisp-G...

grimgrin··on Show HN: I have built a library of screenplays for movies and TV shows
Though the collection will live on in infamy, on archive.org, or a tracker near you
grimgrin··on Digital Gardening
Similarly:

"My product is my garden" https://news.ycombinator.com/item?id=26012189

"My blog is a digital garden" https://news.ycombinator.com/item?id=22876273

grimgrin··on MAR1D: First-Person Mario
my buddy once made a '1d roguelike'

it is exactly what it is lol (aka 110 lines of bash)

https://github.com/rupa/YOU_ARE_DEAD

grimgrin··on The CD’s Rise in the Music Business: An Oral History
The Quietus did a piece[1] celebrating the anniversary, remarking on the pregap[2] and how various artists would leverage it:

> On their third album, 1999’s Guerrilla, Super Furry Animals slipped one of their best songs, ‘Citizens Band’, into the pre-gap, that is, the neverzone before the album proper. Autechre pulled the same trick, in the same year, on EP7, hiding an eerie six minutes of intricate sound design which seems years ahead of its time, and then three minutes of silence, before ‘Rpeg’. They did it again, including the untitled track in the pre-gap to the fourth disc of EPs 1991-2002.

> Pre-gap tracks are a CD-specific phenomenon, paralleled only by DVD Easter Eggs, or hidden levels in a computer game. On the one hand, they’re only possible digitally, on the other, they seem to be an attempt to add some mystique to a circle of plastic. They are a defense of the physical medium because it is impossible to rip them to your computer. Finding them meas having a bit of extra knowledge about the artist, uncovering a hidden layer of depth others hadn’t noticed.

> Earlier, experimental artists took even greater strides into the CDs unique sequencing possibilities. Otomo Yoshihide’s 1993 release The Night Before the Death of the Sampling Virus is a fluctuating voice collage designed specifically for the medium. Its 77 tracks are tiny, most less than a minute, few going above two. The listener is encouraged to hit the random option on their hi-fi. “To play this release in random mode is to allow the SAMPLING VIRUS to regenerate, to mutate with near infinite possibilities.”

> Eccles, UK-based experimentalists Stock, Hausen, & Walkman encouraged listeners to do something similar with their debut album, Giving Up. From the release notes: “The Original CD had 60 ID points deliberately inserted in the middle of a lot of the tracks so that random play would cut the music up and present the listener with a new and unique 'remix' version if desired.” There were things you could do with a CD, that you definitely couldn’t do with a tape or LP.

1. https://thequietus.com/articles/32116-cd-40th-anniversary

2. https://en.wikipedia.org/wiki/Pregap

grimgrin··on Templating in HTML
oh yes yes. what was i thinking! ty for correction
grimgrin··on Templating in HTML
There’s a way to hide from screen readers too if the OP was so inclined:

https://developer.mozilla.org/en-US/docs/Web/Accessibility/A...

grimgrin··on Trombone Champ turns all songs into tooting works of genius
for starters, it's using an _inverted mouse_ by default, which has to be intentional to add to the ridiculousness of the entire experience

playing with a touch screen would be ez mode

grimgrin··on Webamp – Winamp 2 in the Browser
I only recently discovered that archive.org offers webamp as a mode for playing anything with a playlist

See: https://archive.org/details/the-hobbit-bbc-radio-drama?webam...

screenshot: http://i.imgur.com/YXOPhu6.png

grimgrin··on Tipi – A personal homeserver for everyone
Just bookmark a multireddit url, ala: https://teddit.net/r/mud+dcss+cataclysmdda (in this thread I show you teddit, another privacy focused frontend)

teddit does actually have a subscription concept, accountless, but in general the multireddit solution would work for your libreddit example

https://teddit.net/about

    Teddit is a free and open source alternative Reddit front-end focused on privacy.
    Teddit doesn't require you to have JavaScript enabled in your browser.
    The source is available on Codeberg at https://codeberg.org/teddit/teddit.

    No JavaScript or ads
    All requests go through the backend, client never talks to Reddit
    Prevents Reddit from tracking your IP or JavaScript fingerprint
    Lightweight (teddit frontpage: ~30 HTTP requests with ~270 KB of data downloaded vs. Reddit frontpage: ~190 HTTP requests with ~24 MB)
grimgrin··on Show HN: AutoHotkey for Linux
aka “nut.js is a desktop automation framework for Node.js that allows you to program your mouse and keyboard with JavaScript or TypeScript”

https://nutjs.dev/

grimgrin··on The UNIX Programming Environment (1984)
Here's some I found, that one on the list

https://github.com/cwmccabe/pubnixhist/tree/master/systems

I'm not sure it is entirely that helpful, but it IS a list!

grimgrin··on Brian Kernighan adds Unicode support to Awk
What context do you remember about this scenario that left the reflog a rektlog

Not confined to your local machine?

grimgrin··on Cosmopolitan Libc v2.0
If you're here and maybe learning about this space for the first time (or not), you might like to scan:

https://github.com/shmup/awesome-cosmopolitan

grimgrin··on Cosmopolitan Libc v2.0
Not _exactly_ what you're asking for, because certainly you're looking for a write-up/blog, however, if you haven't peeked at ape.S you absolutely must:

https://github.com/jart/cosmopolitan/blob/master/ape/ape.S

It is very commented, in a good way.

grimgrin··on Diablo 1 for Web Browsers
(It's on archive.org, they're really good at not caring. Except that isn't working out very well for them maybe)
grimgrin··on Diablo 1 for Web Browsers
Are you asking for the Shareware version? Otherwise prob the wrong place to ask ;)

I'll say this: archive.org is quite the trove for things of this nature

grimgrin··on Imgator: Compress, convert, edit and resize your images
For sure :( We are at least v aware about it and basically need a person at Microsoft to be really chill

https://twitter.com/JustineTunney/status/1541801499210092544

A very narrow slice of what Justine said in Discord: "But yes, at least one employee at Microsoft has to vouch for the project, or else Windows support won't be able to continue."

grimgrin··on John Carmack's new AGI company, Keen Technologies, has raised a $20M round
Wrong in the moral sense?

He's still there though, right?

edit: he is not still

edit: he is still a consulting CTO

grimgrin··on John Carmack's new AGI company, Keen Technologies, has raised a $20M round
No one can argue he doesn't know how to summon demons
← PreviousPage 8 of 17Next →