Better HN
topnewbestaskshowjobs
Log inSign up

mascarenhas

353 karma · joined Apr 27, 2007 (19y ago) · 30 submissions

Submissions

comment 9mo ago · link · parent

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.

comment 9mo ago · link · parent

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.

comment 10y ago · link · parent

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...

comment 10y ago · link · parent

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.

comment 13y ago · link · parent

I forgot to tell in the message that there's also a mirror at http://fabiomascarenhas.github.io/lua/

comment 13y ago · link · parent

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. :)

comment 13y ago · link · parent

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).

8.

Project HiJack - connecting sensors to a smartphone's headphone jack(web.eecs.umich.edu ↗)

8 points · by mascarenhas · 14y ago · discuss

9.

TechBASIC, a scientific BASIC environment for the iPad(byteworks.us ↗)

3 points · by mascarenhas · 14y ago · 1 comment

10.

How Twitter Makes the Internet More Local(foreignaffairs.com ↗)

2 points · by mascarenhas · 14y ago · discuss

comment 14y ago · link · parent

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.

12.

The Beauty Bias(overcomingbias.com ↗)

1 points · by mascarenhas · 15y ago · discuss

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

I can see a lot of folks just blocking Safari outright if Apple tried to pull this stunt...

15.

How Apple could slay Google at WWDC 2010(roughlydrafted.com ↗)

6 points · by mascarenhas · 16y ago · 9 comments

comment 16y ago · link · parent

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.

17.

Jobs on Flash: Hypocrisy So Thick You Could Cut it with a Knife(osnews.com ↗)

309 points · by mascarenhas · 16y ago · 112 comments

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

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

comment 16y ago · link · parent

This virtual machine approach works great for Parsing Expression Grammars, because of restricted backtracking:

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

comment 17y ago · link · parent

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.

comment 17y ago · link · parent

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).

comment 17y ago · link · parent

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).

comment 18y ago · link · parent

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.

26.

Crowdsourcing for Doctors(sermo.com ↗)

1 points · by mascarenhas · 18y ago · discuss

comment 18y ago · link · parent

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. :-)

comment 18y ago · link · parent

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

comment 18y ago · link · parent

Apple fanboy embarasses himself. Film at 11.

comment 19y ago · link · parent

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.