HNHacker News
TopNewBestAskShowJobs

quirino

1,057 karma · joined December 11, 2020

Computer Science student from Brasília, Brazil.

quirino.net

submissionscomments
quirino··on Fixing a bug in Google Chrome as a first-time contributor
Thank you so much for all these pointers!
quirino··on Fixing a bug in Google Chrome as a first-time contributor
I don't have a ± key. I'm using swaywm which seems to have no compose key set by default, I've tried all the common ones and they don't act as such.

I haven't been able to detect any pattern to what triggers this, at all. It is always "±".

quirino··on Fixing a bug in Google Chrome as a first-time contributor
There's this one Chrome (?) bug I've been experiencing for a long time on Linux.

Every once in a while, the browser detects I'm typing "±±±±±±+..." and writes that to any selected text input. It stops when I type anything, but sometimes comes back rather quickly.

I thought it was a keyboard issue, but it doesn't affect Firefox or other applications, only Chrome based ones like Spotify and VSCode.

I've found no other mention of this on the internet and I'd love to to hunt this down and fix it but have no clue where to start. I guess the first step would be to consistently reproduce the bug...

If you're interested, I screen recorded it happening once. Mind there's music playing: https://youtu.be/S7OGTULLsqg.

quirino··on Show HN: I built an animated 3D bookshelf for ebooks
Very cool!

I've wanted to build something similar to this for music. Some virtual environment where you can organize your albums on shelves and play them on a turntable.

You could even extend this so you have to walk to a store to buy new albums etc.

quirino··on AI solves International Math Olympiad problems at silver medal level
I honestly expected the IOI (International Olympiad of Informatics) to be "beaten" much earlier than the IMO. There's AlphaCode, of course, but on the latest update I don't think it was quite on "silver medal" level. And available LLM's are probably not even on "honourable mention" level.

I wonder if some class of problems will emerge that human competitors are able to solve but are particularly tricky for machines. And which characteristics these problems will have (e.g. they'll require some sort of intuition or visualization that is not easily formalized).

Given how much of a dent LLM's are already making on beginner competitions (AtCoder recently banned using them on ABC rounds [1]), I can't help but think that soon these competitions will be very different.

[1] https://info.atcoder.jp/entry/llm-abc-rules-en

quirino··on Eza: A modern, maintained replacement for ls
I wonder if sites could use the HTML <time> tag for this. They could choose the human readable format but still give us the time so that it could be replaced or overlayed with some extension.

I always try to use it when writing HTML.

(https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ti...)

quirino··on After 12 years of reviewing restaurants, I'm leaving the table
Can you suggest a couple of channels? I've never played RuneScape but those videos sound right up my alley.
quirino··on Show HN: SHAllenge – Compete to get the lowest hash
Hey! Tudo bem :)

Sorry for the late reply.

I've added a "/data" endpoint where you can get the full database in json format.

quirino··on Show HN: SHAllenge – Compete to get the lowest hash
Chose to fix that, but won't delete the submissions that used it. Thanks!
quirino··on Show HN: SHAllenge – Compete to get the lowest hash
Thanks for sharing! It's similar to mine in many ways.
quirino··on Show HN: SHAllenge – Compete to get the lowest hash
Just saw you got 12 zeroes! Second place!

Did you start using a GPU or where you just insanely lucky?

quirino··on Show HN: SHAllenge – Compete to get the lowest hash
It was actually much easier than I expected. Just asked for it as a single HTML page, copied the output to a file and opened it on Chrome. Did very few adjustments.
quirino··on Creativity has left the chat: The price of debiasing language models
I've watched most of them actually. It's a really great channel. Notably, I watched his Mike Tyson video released 6 months ago and didn't notice anything like this.

The only way to be sure would be to ask him directly, but some parts of the video set off my GPT radar _hard_. I tried to find them now by watching random segments but all of the ones I did were fine. It was probably inaccurate for me to say "sheer amount" or "clearly", but that's the impression I was left with after the video.

To clarify: I don't think he even took any information from an AI, it's just the style of the script that's iffy.

Some parts felt like those videos littering YouTube Shorts: https://youtube.com/shorts/NKUecaS69uk. Can you tell this is AI?

quirino··on Creativity has left the chat: The price of debiasing language models
Something I notice about text written by LLMs is how painfully obvious they are to identify sometimes.

Recently I was watching a very well researched two hour video on Tetris World Records [1], but the sheer amount of text clearly "enhanced" by an LLM really made me uncomfortable.

ChatGPT speaks a very specific, novel, dialect of English, which I've come to deeply despise.

I'd always guessed it was caused by some kind of human interference, rather than a natural consequence of its training. That seems to be the point of this paper.

[1] "Summoning Salt - The History of Tetris World Records" - https://www.youtube.com/watch?v=mOJlg8g8_yw&pp=ygUOc3VtbW9ua...

quirino··on Show HN: SHAllenge – Compete to get the lowest hash
I'm glad you had some fun! This experiment went about as well as I could hope!

If anyone's curious, I'm getting 4.5MH/s single-threaded and 12.2MH/s multi-threaded on a slightly old i7 with 4 cores.

It's my own C++ implementation, which I've made about 20% faster than the fastest one I found online (Zig/stdlib, also tried Go/stdlib, C++/cgminer, rust/ring, C++/VanitySearch and Python/stdlib).

I think it might be faster just because I was able to skip some steps, since all inputs are short and of the same length.

I've just finished testing 10^12 inputs. I think I'll stop with 10 zeroes, which is very likely to happen in the next couple of days, according to my calculations. I might revisit it later to learn some GPU programming.

quirino··on Show HN: SHAllenge – Compete to get the lowest hash
The hashing is about consensus. It's related how a low hash stands as proof of computational power, you can't just fake it.

The "adding more zeros" is done automatically, according to an algorithm, so that the time between blocks is more or less the same.

There's this incredible MIT course about all of this, it's where I got the idea for the site from: https://youtube.com/playlist?list=PLUl4u3cNGP61KHzhg3JIJdK08...

quirino··on Show HN: SHAllenge – Compete to get the lowest hash
One hour later, it seems like you've got your 10th zero! :)

Luck plays a tiny part too, I'm testing sequentially and I got my 9th zero with only ~7e8 hashes, a whopping 100x earlier than expected.

quirino··on Show HN: SHAllenge – Compete to get the lowest hash
The top competitors are very likely using GPUs, I guess that would make this cost much much lower...
quirino··on Show HN: SHAllenge – Compete to get the lowest hash
Maybe I should include a warning that it is pretty slow.

I'm using my own SHA256 implementation in C++, and it is at least 100 times faster than the JS one. I've measured it to be about as fast as the one on the Go standard library.

quirino··on Show HN: SHAllenge – Compete to get the lowest hash
Thank you!

Curiously most of the code for that JS miner was written on my phone, with the help of ChatGPT.

I didn't have my laptop with me and was curious how fast a phone browser would be able to mine.

quirino··on Dark Software
That's also my issue with dark kitchens. Apps list actual, physical restaurants, next to what is just people making food in their own homes. And I've found instances of the name changes you mentioned.

There's this "premium" burger place I like has alternative "delivery first" menu with lower cost offerings and a whole different name and branding. You can also order from this menu in person but you need to ask for it. I find this to be an interesting strategy.

quirino··on Show HN: 2d web paddle game
In that case I think the strategy would be to create a lead and then let all the balls through so that the game ends. At the start I was winning but at some point I wasn't able to keep up anymore.
quirino··on Show HN: 2d web paddle game
My first thought was that the AI of the bot was code written by GPT.
quirino··on My favorite programming problem to teach: Digit length (2019)
It is mentioned at the end of the article. In Python it's as simple as len(str(x)).
quirino··on My favorite programming problem to teach: Digit length (2019)
Interesting note is that the clever solution fails pretty early: 999999999999999 (15 nines) outputs 16.

I hope the author warned the students about floating point imprecision :P

quirino··on My favourite data structure: The trie
One of my favorite data structures is the Aho-Corasick Automaton, which combines Tries and the KMP algorithm in order to search for multiple strings in a text simultaneously.

It is very elegant.

quirino··on Rise of fast-fashion Shein, Temu roils global air cargo industry
There are shops on TikTok, seems to be a pretty big thing in some countries.
quirino··on Hexcodle
Or even from the first guess, I started with #777777
quirino··on 4B If Statements
The OBI website is really great, it's just been down for a couple of days. There's a good chance you'll find records there.
quirino··on 4B If Statements
When I started programming at 12-13 I had no idea loops or arrays existed and implemented an absolutely criminal Tic-Tac-Toe game.

The same year me and a friend were studying for the national Informatics Olympiad and we were completely stumped when faced with a problem that required a list: "How do we know how many variables to declare if we don't know the N beforehand?".

(The problem if anyone is interested: https://neps.academy/br/exercise/384. Given a list of up to 50k distinct numbers (with values up to 100k) and another list of 50k numbers that should be removed, print the resulting list. Time Limit: 1 second.)

← PreviousPage 3 of 6Next →