HNHacker News
TopNewBestAskShowJobs

imrehg

1,431 karma · joined December 16, 2009

Senior Machine Learning Engineer at Faculty https://faculty.ai

Contact: gergely@imreh.net

Based at http://gergely.imreh.net

Taipei Hackerspace co-founder https://taipeihack.org

[ my public key: https://keybase.io/imrehg; my proof: https://keybase.io/imrehg/sigs/Vqc30FUDkAzeR6b4jTTQown3Qjned_Xju7DqvvT6DfU ]

submissionscomments
imrehg··on Meticulous: An FPGA-Based Main Memory Emulator for System Software Studies
I have bought a bunch of FPGAs years back when I had more time maker/hacker stuff, but then I haven't done anything with them. This looks like an interesting use case that would allow me both to know more FPGA bits and the actual use case of computer systems...
imrehg··on Johnny Decimal: A System to Organize Projects (2015)
That's what I took away from reading Everything is Miscellaneous a long while back https://en.wikipedia.org/wiki/Everything_Is_Miscellaneous

Definitely thinking about categorization differently (folders which are similar to this, tags, organic order by linking; bookmarks, notes, all are in the same boat as well).

imrehg··on Protohackers Learnings
I <3 Protohackers, and I'm being way behind the challenges, good reminder to pick them up again for some real-world experience...

Nice to see the Rust angle here, coming from Python I'm also trying to pick up that a lot more these days, and it's just quite a different mindset that needs more anchoring in real world use, like here, to stick.

Tooting my own (failed) horn, a similar, just one-challenge writeup from last year: https://gergely.imreh.net/blog/2022/09/programming-challenge...

imrehg··on FTC judge rules Intuit broke law, must stop advertising TurboTax as “free”
Taiwan does e-tax, and it's pretty decent. Can use some internet banking / investment system credentials to log in, as well as your national health insurance card, as well as digital citizen certificate. Download all your central data of taxes witheld or paid on your behalf, fill in a few details, and off to the races.

Except last time I've checked, even the English version needed a Windows system with Chinese characters to run properly (not even any of the Traditional Chinese, say Unicode, but some specific one). Also, there are printed paper bits to file sometimes in the end.

Nonetheless it's still good to have something "blessed", and it's also evolving.

imrehg··on Ask HN: How to handle Asian-style “Family name first” when designing interfaces?
You say Asian, but same order in Hungary too.

Funny part, now living in Taiwan, when the forms ask me for my "English Name", I never know it means "First Last" (which would be the opposite order for me of the original form), or merely "Name in Latin characters".

Names are hard.

imrehg··on Show HN: Dataherald AI – Natural Language to SQL Engine
Thanks for the update, yeah that makes sense!

I think it's useful to add as a note how to add credentials when running inside Docker since that mode is included right there in the readme (ie. adding a volume with the credentials).

As an idea, for the "Adding string descriptions" section, having stuff like dbt docs (or even just the manifest that generates) could supercharge the context.

Very interesting in general, definitely trying it out for our database!

imrehg··on Show HN: Dataherald AI – Natural Language to SQL Engine
This looks very interesting and timely for me, thanks for sharing!

I was looking at the project to spin it up with a BigQuery connection, but I couldn't find an example in the docs (expected it on this page: https://dataherald.readthedocs.io/en/latest/api.database.htm...), nor can I find it in the repo. Any hints on this? Otherwise I'm fine going source code diving. :)

imrehg··on Making an Arduino USB Mute Button for Online Meetings
I tried it in MS Team web call, and Zoom web call, neither of them seem to do WebHID, so I didn't find any option to enable similarly as in Google Meet. I guess Meet has to do this, as they don't have desktop version themselves.

On the other hand, looking at MS Team & Zoom desktop apps (in MacOS), there are some options that suggest that _some_ sort of USB hacking would be possible.

Teams > Settings > Devices > Sync Device Buttons; and Zoom > Preferences > Audio > Sync buttons on headset seem to be the key to enable that, but it's unclear just now what sort of device are they looking for.

I'm guessing it can be the "General Desktop Page 0x01" / "Call State Management Control 0x13" kind of device, as briefly mentioned in the blogpost, with the Call Mute Toggle 0xE1. It's a different kind of value (changes on a signal edge) rather than absolute like the button done here, and would need a bit more experimentation to send the right kind of signal. My initial checks are inconclusive.

Looking at MS Presenter+, it seems like the button behaviours can be customized by software, so I wonder how much of its behaviour is hardware devined. Also, it's Bluetooth, so likely the control mechanism is different from this USB-based control.

Thanks for the question, though, the rabbit hole goes deeper!

imrehg··on How should I read type system notation?
From the examples:

> 𝗍𝗋𝗎𝖾+2:𝖨𝗇𝗍 means “𝗍𝗋𝗎𝖾+2 has type 𝖨𝗇𝗍”, which makes even less sense, as the expression 𝗍𝗋𝗎𝖾+2 is nonsense and does not have any type at all.

Well, Python called where `True + 2` is actually an int and is equal to 3. :) This doesn't say anything about whether this should be the case or not, just whether it is.

imrehg··on The Importance of Being a Code Reviewer
Yeah, could. Though from experience, this wouldn't make too many friends, not that making friends is the main aim. :)
imrehg··on The Importance of Being a Code Reviewer
I haven't been at a place yet where pair programming is so common or frequent that code reviews are not necessary, so it's definitely a very useful skill. I also see that many people indeed take it as burden or hoops to jump through, rather than an inherently useful exercise, as the article outlines it.

Mentioned in the "What" section is the matching of the stated goal of the PR with the reality: so rare to find anyone who puts any effort into writing good PR messages (not to mention good commit messages, but that's for another time). Linking to tickets, explaining the rationale, most other context is just skipped because being assumed (or assumed to be communicated through some other channels). Less than ideal.

In general the "what you put in is what you get out" applies very well both for writing good changes and PRs as well as good reviews. Applying similar principles as the author listed, I have a lot of good feedback from people that the comments in reviews helped them improve and occasions for rare actionable feedback on technical know-how.

imrehg··on Edsger Dijkstra’s One-Day Workweek
I'd love a schedule like this: the one day gathering with likeminded people and discussing interesting topics, the rest of the time is self-directed learning and creating, delegating all the parts that are deemed less important for the "unique value add" of the person.

I frequently have the feeling as we well that I could get so much done if I didn't have to work -- this is not necessarily _correct_ (most likely it isn't), but aligns well with the case made here, so there _might_ be something to it to explore how to get more free (creative time), almost at all cost.

imrehg··on The Mathematica Journal is no longer accepting submissions
Haven't used Mathematica for ages (since uni basically) and it waas good to browse the articles a bit. Given how the profile seems to basically be to showcase cool Mathematica use cases, the move to the Wolfram Community does make sense.

While checking past issues on the web, it's a bummer that they didn't work out how to typeset the actual Mathematica commands in the articles as text rather than the current image format. This prevents copy-pasting code, which can spend dozens of lines, making it harder to try them out. That's at least not the case in the Wolfram Comunity pages - I'm guessing those are just notebooks at their core, so much easier to do.

imrehg··on Framework Laptop 16 pre-orders are now open
Bonus points that you can still use English for the interface (ie. decoupling the currency and region).

Originally I thought the keyboard printing would be a sticking point for them not to ship there, but now that I just tried to customise a Framework 16, they do have Traditional Chinese keyboard (the usual English + 3 Chinese writing system on each key), and that's great. The 13 doesn't have it (yet?) though.

imrehg··on AutoChain, lightweight and testable alternative to LangChain
How's your experience with it, have you used it in anger successfully?
imrehg··on Framework Laptop 16 pre-orders are now open
I wish they had made orders available here in Taiwan since it is made here. Would buy one right now. Of course, with the current interest, they don't need extra markets to saturate their order book, and I am not keen to order to another country and ship it back here, so gonna remain Frameworkless for a while.

Super fascinating to read the user experiences so far, really excited and cheering them on!

imrehg··on Mixing Gitlab personal and work accounts: Enterprise Users
Writeup to spread the word about an email recently from GitLab, how users will be impacted who have personal and work account when being designated as Enterprise users: their account will be taken over by their employers. I couldn't find a blogpost, or announcement by GitLab that carries this 1st August, 2023 deadline for splitting accounts, otherwise I would have posted that.
imrehg··on Hacking LangChain for fun and profit
Yes, the map-reduce chains for summarisation, to work around context size limits of LLM. It works while there is a lot more debugging to do why is it much slower than expected (but it is fortunately fast enough for the task).

Langchain has a lot of surface area and it is still on 0.0.x, so also much advised to pin the versions hard.

imrehg··on EVs from Toyota, Ford, Audi and Genesis are sitting on dealer lots
With hybrids like this, my understanding is that the EV range cannot be directly translated into electric-only driving range, because above a certain speed the car does switch back to the the ICE, regardless. It is only in the lowest speeds when it does the EV-only mode operate.

Or am I missing something?

imrehg··on Threads has passed 2M sign ups in the first 2 hours
Amazing naming, still. Searching on the Android Play Store, just in case, first thing that comes up is "Threads" -- that has to put in an all capitals discalimer:

> [NOT AFFILIATED W/ THREADS BY INSTAGRAM] All in-one team communication platform

I bet they had a bump due to the name clash, and loads of support request too!

imrehg··on XGen-7B, a new 7B foundational model trained on up to 8K length for 1.5T tokens
Those look all programming related tokens, and I think they should relate to their focus of improving this model's code generation capabilities, and adding quite a bit of data related to that (BigCode Starcoder in the Second stage in pre-training https://blog.salesforceairesearch.com/xgen/#pre-training-dat... )
imrehg··on XGen-7B, a new 7B foundational model trained on up to 8K length for 1.5T tokens
Looks like this is the limitation why it cannot just be plugged into llama.cpp (doesn't have a saved tokeniser model, and I'm not sure how would one go about creating one). Otherwise it would be cool to try it out, the metrics in the article are promising to have something running locally on an M1 Mac...
imrehg··on The hidden cost of air quality monitoring
"Let me ChatGPT that for you" reaction is likely the new "Let me Google that for you".
imrehg··on CI/CD with KiCad and Gitlab
This is very cool! As person doing small scale PCBs in a previous life, might just try to make things set up with my repo similarly (though have to find it first, might be in GitHub, so the idea would be the same but the tooling somewaht different).

One thing that makes me wonder all the time are CI/CD runs that commit back to the repository. That feels weird for some reason I cannot articulate very well yet, but makes me think there should be a better way. Especially if the results are artefacts like that. Any experience by others to weigh in?

imrehg··on Gitlab and Google Cloud Partner to Expand AI-Assisted Capabilities
Since this comment intrigued me, this is the other HN post that the above memo refers to: https://news.ycombinator.com/item?id=35813763 which links to the Shopify blogpost: https://news.shopify.com/important-team-and-business-changes

Cheers for highlighting it!

imrehg··on Google Authenticator cloud sync: Google can see the secrets, even while stored
I guess the person meant this: encrypt-than-upload of backups with backup passkey managed by yourself, details e.g. in this blogpost: https://authy.com/blog/how-the-authy-two-factor-backups-work...
imrehg··on The UK will spend £100M to develop its own 'sovereign' AI
I've just run the 4 well defined questions through ChatGPT/GPT-4, got an interesting first approximation of all of those, so the fine tuning might not be too far off!

Cheers for the inspiration, an that now I crave scones...

imrehg··on When root on ZFS breaks on Arch Linux
Yup, this popped up for me about a month ago on a Raspberruy Pi system, fortunately not on the root, but still. On ARM the kernel_neon_begin / kernel_neon_end symbols were made GPL only[0] which is quite puzzling on many levels.

The discussion of the reported issue on the OpenZFS GitHub is very educational, both on the maintainers side (useful, sensible), and the other commenters syde (kinda "thermonuclear")[1]

In the meantime I just downgraded the kernel as well, fortunately still had it in the pacman cache; then pinned it for now.

Sent an email to to the patch creator / signer-off too, to feed back on that "this is not expected to be disruptive to existing users." part of the commit (as in [0]).

[0]: https://lore.kernel.org/all/20221107170747.276910-1-broonie@...

[1]: https://github.com/openzfs/zfs/issues/14555

imrehg··on Ask HN: Anyone free to meetup in Tokyo on Xmas?
I'd second it, should we get started? :)

(Used to run various geek events in Taipei, it has been a while since doing it though, so timely to get back into it!)

imrehg··on Ask HN: Anyone free to meetup in Tokyo on Xmas?
Taiwan says hi too! Anyone keen in Taipei or northern Taiwan in general, happy to meet, on Monday, Tuesday (still sorta technically Xmas) or any time next week! gergely@imreh.net
← PreviousPage 3 of 18Next →