News for hackers. Stuff that matters.

mascarenhas

Re:Disney trip turned into immigration detention on Wednesday February 18, 2026 @04:44PM (#47066878)
This was killed twice today already, and is related to this story, so if anyone else can vouch to unkill: https://news.ycombinator.com/item?id=47060078

The current one has already been killed once, and is flagged again.

I have set it up in a docker container that only has two host volumes mounted with the Obsidian vaults where I keep notes for two TTRPG campaigns, so a very low-stakes situation. I have set it up with a Discord bot so my players can chat about campaign and rules stuff (I already had player-facing notes for every session in the Obsidian vault in chronological order, plus a bunch of Markdown files with rules).

If the agent goes rogue and nukes my Obsidian vaults I have them backed up to Github private repos anyway which the agent cannot touch because I am not crazy to give it my SSH credentials.

I initially tried using Kimi-2.5 through OpenRouter and had the same experience you had with pretty bad tool use, not sure if this is a provider issue since it is a pretty new model. I switched to Gemini 3 through the Google AI Pro account I have for personal use and it was a lot smoother after that.

I have some experience with coding agents using Cursor for work and Antigravity for personal stuff, and the OpenClaw harness definitely seems worse, but for my low-stakes use-case I managed to paper it over with some edits to the AGENTS.md file.

But even in this very crude state it was already interesting to see one of my players giving the agent some info about his character, including an avatar image, and have the agent create a folder in my Obsidian vault to store this and update its memory file to be able to remember it for future interactions.

Re:Type hints – a mediocre programmer's reaction (2015) on Friday March 18, 2016 @08:58AM (#11311452)
You only need row polymorphism if you want full type inference. You can get away with width subtyping with bounded parametric polymorphism if you are willing to give up on inferring all types. Examples: Go, TypeScript, Flow...
Re:Brazilian doctors use WhatsApp to talk to patients on Tuesday December 08, 2015 @02:32PM (#10698766)
I don't know where the parent lives in Brazil, but the supermarket chain comment definitely has not been my experience in upper-middle class Rio de Janeiro neighborhoods.

People use Whatsapp instead of SMS because it simply is a better user experience, specially for sending media and group chat, not for showing off, or keeping in touch with relatives abroad. Phone companies began offering "free whatsapp" even in pre-paid plans because it because it became very popular, as a way to attract costumers, not the other way around.

Re:Class notes for Lua course based on PiL on Friday October 04, 2013 @06:52PM (#6498552)
I forgot to tell in the message that there's also a mirror at http://fabiomascarenhas.github.io/lua/
Re:Class notes for Lua course based on PiL on Friday October 04, 2013 @06:50PM (#6498540)
Actually the "meat" of the course starts on unit 1, unit 0 is more of a recap of where Lua comes from and where it is used. :)
Re:How the embeddability of Lua impacted its design on Monday December 03, 2012 @06:46PM (#4868652)
Try again next semester. Taking compilers is mandatory for comp. sci students, so they will have to bite the bullet and take it eventually, even if scared of Roberto (somewhat with reason; the course is easier than Coursera's Compilers course, but still a hard course for the undergrads).
OS/2 was actually quite good on underpowered hardware if you stuck to console apps running fullscreen. I started with OS/2 2.1 on a 40Mhz 386 with just 8Mb RAM, connecting to BBSes and reading FidoNet with a newsreader called Blue Wave and programming with the Boxer editor. OS/2 Warp was the first shrinkwrapped software I bought, still on floppy disks; I was quite proud of that as a 14 year old, as piracy was rampant in Brazil at the time.

I remember OS/2 was quite popular with both BBS operators and BBS users around here, as it was the easiest way to multitask on a PC in the early 90s. It had a quite vibrant shareware/freeware scene. You did have to be picky about hardware, though, but even here it was easy to find video cards, sound cards and modems that ran just fine.

You have to compare Lua at 1995 (version 2) to JavaScript at 1995, as its development, at least inside the browser, would be arrested the same way JavaScript's was. Lua 2 was certainly had a much better implementation than the first JavaScript, but I would not call it a better language (didn't have JavaScript's annoying quirks, but also didn't have closures, for example). 2000's Lua (5.0 and 5.1) is quite different from its earlier incarnations.
Re:How Apple could slay Google at WWDC 2010 on Wednesday May 26, 2010 @04:48PM (#1381632)
I can see a lot of folks just blocking Safari outright if Apple tried to pull this stunt...
This was obviously a typo to me, I just skipped it and kept reading. By now several other comments here have shown that the Jobs' letter is indeed hypocritical by the accepted definitions of the term. I will even link another one: http://en.wikipedia.org/wiki/Hypocrisy.
Re:Love for LuaJIT on Thursday January 21, 2010 @02:20PM (#1068077)
Lua numbers are not boxed in the usual sense; they live in the Lua data stack (which leaves in the C heap, but this is not isomorphic to the Lua heap), are not accessed through a pointer, and do not put pressure on Lua's memory allocator and garbage collector.

LuaJIT 2's NaN tagging alone does not speed up the stock interpreter: http://article.gmane.org/gmane.comp.lang.lua.general/44823.

Re:Love for LuaJIT on Thursday January 21, 2010 @02:09PM (#1068047)
LuaForge's ftp server is broken since the big LuaForge crash a few months ago, so those pages are badly out of date. Browse http://github.com/keplerproject for more recent information.
Re:Ask HN: Is Google's Go ready for serious projects? on Monday January 18, 2010 @07:44AM (#1059804)
There are more full-featured web servers written in Lua, too: http://github.com/keplerproject/xavante and http://dev.alt.textdrive.com/browser/HTTP/HTTP.lua
Re:Regular Expression Matching: the Virtual Machine Approach on Thursday December 10, 2009 @07:55PM (#988963)
This virtual machine approach works great for Parsing Expression Grammars, because of restricted backtracking:

http://www.inf.puc-rio.br/~roberto/docs/peg.pdf

Re:Ask HN: Anyone used Lua Kepler? on Monday March 30, 2009 @03:38PM (#539002)
I am not one of the book/site's authors, but one of the Kepler commiters :-), but this is what they say at the site's about page:

"This website is powered entirely by Lua, using Sputnik, an extensible wiki package. When the authors and contributers were compiling the electronic API reference, Lua tables were chosen as the data file format, due to it's extreme flexibility and readability. When the time came to produce the online version of the reference, a Lua-based solution was obviously attractive."

As for the wiki's author, he was studying software projects based on Brazil as part of his PhD at UC Berkeley School of Information and decided to stick around and participate.

Re:Ask HN: Anyone used Lua Kepler? on Monday March 30, 2009 @12:40AM (#538199)
A more recent commercial site that is using Kepler (via the Sputnik wiki/cms) is the site for the "World of Warcraft Programming" book, created by the book's author. I have updated http://www.keplerproject.org/en/Uses (the current Kepler homepage itself uses Sputnik, too) to reflect that, and link to the Sputnik sightings page.

The big con is that the included batteries have very low wattage-hour. :-) A lot of things that you can take for granted on the big Ruby/Python frameworks you will have to build yourself.

The upside is that once you get the ball rolling it's very easy to deploy, and will run without issues on the most stingy shared hosting (Lua is very CGI-friendly). It can run on any server that supports CGI or FastCGI, and also includes a Lua webserver (single-threaded only at the time, though).

Orbit is more like Camping or web.py than Rails, though. But I tried to make its deployment (along with the rest of Kepler) as easy as PHP's as possible. :-) Having a Lua embedded on Apache by default should make fast deployment very easy, too (the easiest way to deploy on Apache right now is CGI, with FastCGI being a little more work).
Re:Anyone using Lua to deploy web apps? on Thursday September 18, 2008 @08:13AM (#308103)
Check LuaRocks (http://luarocks.org), a package manager/installer for Lua, it makes deployment of C extensions much easier (no root access required).

About deployed Lua webapps, there's http://www.wowprogramming.com/, using Sputnik (http://sputnik.freewisdom.org) on top of the Kepler (http://www.keplerproject.org) stack. The forums are Sputnik extensions.

Re:How to Disagree on Saturday March 29, 2008 @01:59PM (#149532)
I was not dissing your essay, just giving more information. I agree with you that most intellectual dishonesty is unintentional, and that knowing these things is important in avoding them. I was just pointing that there are other sources to draw upon, as this subject is timeless. But your essay is a much easier read than Aristotle's treatise. :-)
Re:How to Disagree on Friday March 28, 2008 @10:19PM (#149083)
The more things change... http://etext.library.adelaide.edu.au/a/aristotle/sophistical...

Edit: and on a more recent (and cynical :-) ) note: http://en.wikipedia.org/wiki/The_Art_of_Being_Right

Re:Levy: Gone, Without a Trace on Monday March 10, 2008 @12:41AM (#132933)
Apple fanboy embarasses himself. Film at 11.
Re:What Linux laptops do you use for development? on Friday April 27, 2007 @02:31PM (#17482)
What about sleep support and battery use? That is a big selling point for the Mac, my MacBook uses more or less 1% of battery per hour and fully wakes up (wifi included) in a matter of seconds. Is there any PC notebook with similar sleep performance under Linux? This is not a troll, I actually prefer Linux for most things, and would gladly use a 12", <3lbs notebook running Linux if it had fast and reliable sleep.

Older »