Better HN
topnewbestaskshowjobs
Log inSign up

benbeltran

325 karma · joined Jun 24, 2008 (18y ago) · 109 submissions

[ my public key: https://keybase.io/benbeltran; my proof: https://keybase.io/benbeltran/sigs/lGvGc4BPwyNTXdiX9sNBvwXTD2ZGF32iOj6Jg1LFBFA ]
Submissions

1.

Nginx Office Hours: A module to make your sites available only during a schedule(gitlab.com ↗)

1 points · by benbeltran · 7y ago · discuss

comment 12y ago · link · parent

Here's a good take on why we share cats on the internet, including brain-control, by pbs' idea channel: https://www.youtube.com/watch?v=NJ_6aRjYR0w

comment 12y ago · link · parent

Off-topic, but I had the opportunity to have several cuban PhDs teach some of the final classses in college (Multi-agent systems, computer intelligence, etc) ... All of them were incredibly good in their fields, better than any other professors I had in school, and as good as some of the brightest I've met in this field.

There were also some docs in other disciplines and they were all incredibly good. Based on that experience I think cuba is hardly "punching far above its weight", but reflecting great care, passion and responsibility as they do in other fields... We just assume a lot of things about cuba. I sure did before.

4.

Fluorine: The library to get things flowing(nsovocal.com ↗)

2 points · by benbeltran · 12y ago · discuss

comment 12y ago · link · parent

Hey! Just as a followup, in case you're still interested. We released a pro version that includes FPS and password protection

comment 12y ago · link · parent

http://recordit.co/dBgMnxsHVc.gif

comment 12y ago · link · parent

Looks interesting. Will check it out. Only 10 seconds though, right?

comment 12y ago · link · parent

There will be, soon! We're tweaking it to get all the parts moving just right. Also... ...

comment 12y ago · link · parent

The current build, secretly has Cmd+Shift+5

comment 12y ago · link · parent

Pretty excited to finally see this going up :)...

comment 12y ago · link · parent

Yes! The guy that made Max eventually made PureData (which is in the list). It's an awesome environment. Max (General) with MSP (Audio) and Jitter (Video) can do a lot of stuff, even control full lighting rigs + video, or even have a nice visual interface to an arduino. They recently integrated with Ableton Live too so you can use MSP patches as instruments. It's a great platform.

comment 13y ago · link · parent

It's weird that I see many people complaining about tables because of pairs/ipairs or trivial stuff like that, which are more nuisances than anything. The flexibility of tables/metatables make them a very powerful data structure (not unlike javascript's prototype). I've been playing a bit with it for game development and you can build some very powerful stuff just using tables.

Maybe instead of trying to use lua as another language, you should totally embrace "the lua way" and then you'll understand why their tables/metatables is the way it is.

comment 13y ago · link · parent

Updated with a JSPerf: http://jsperf.com/thulium-vs-underscore-and-ejs ... Tm runs faster in chrome/node... Underscore wins in firefox. So we'll need to get to work in optimizing stuff for firefox too :)

comment 13y ago · link · parent

I'll try to do a /proper/ benchmark (Different cases, different types of templates, and such). Because the tests were with a simple template that had all the shared features. When I do, I'll add it to the README.

It's not that complicated, swaping between the two. they're basically the same if you don't use breaking printable blocks. So you just change:

    tm = _.template(string);
    tm(context);
to

    tm = new Thulium({template : string}).parseSync().renderSync(context);
It's different in that you do the initialization, parsing and rendering in different steps. TBH, with smallish templates, I found Thulium to be about 10µs faster. Which in most cases, is negligible. So if you're already using underscore, you probably shouldn't change everything. But if you need extra features like wrapping the output of a function in form tags or something like that, you can do it really easily with thulium. (Porting some of our helpers from EJS to Thulium meant a reduction of many lines of code and complexity.)

comment 13y ago · link · parent

I don't think so. I think the purpouse is to offer less: We don't even have built-in helpers or file loading mechanisms or caching. The philosophy is that we just do templating, we do it really well, and the rest is code from your stack. This philosophy has worked with our projects.

comment 13y ago · link · parent

It's based on EJS. So it's indeed really similar to underscore. In fact, we benchmarked against underscore's template function and EJS and, at least in our templates, achieved better performance (Not very scientific: we got averages out of 200000 renders). It offers breakable printable blocks, and very nice debuggability.

comment 13y ago · link · parent

We based it on EJS because we had a lot of views with EJS. But we needed a lot of performance (Our goal was to be faster than the underscore templating language). We also needed debuggability. So, it's built in a way that works very well with all the tools we use. Finally, the feature we benefit from the most is broken printable blocks. It's very easy to capture the output from a function in a block, and just move it around as we please. It makes wrapping helpers a hell of a lot easier.

comment 13y ago · link · parent

Is that the sparrow logo in one of the screenshots? ...

comment 13y ago · link · parent

In a very creepy aspect of this. I closed my account a while ago, and I opened a dummy one with another email, because I still needed to mod a few communities. The recommendations were the usual: friends of people in the communities and such. About a month ago it started recommending family members, classmates, and friends. Really accurate. It's creepy: I don't have a smartphone from which it could syphon the contacts, I'm not using my real name and I was using an email that I only use for facebook. I have no idea what data it's using. But I was not surprised, I just thought. "Damn it, they found a way"

comment 13y ago · link · parent

Well, in discourse it's more convention than anything. But the first category created, is a `meta` category. But this explains it better: http://meta.discourse.org/t/what-is-meta/5249/2

comment 13y ago · link · parent

Kind of an aside, but still relevant to part of your post. Whining about the content and whining about the meta whining is part of any sufficiently old community. I can recall from communities I've managed, and from ones I've participated in there's /always/ metacommentary and metametacommentary. The best thing to do in these cases is not to engage it. But no, HN will never get past all the whiny meta and there's very little we can do about it except letting it slide :(

Quick Edit: This is one of the reasons why I love discourse, it encourages metadiscussion in a separate part, and while it doesn't keep it from contaminating, it seriously helps a lot to focus it and guide it.

comment 13y ago · link · parent

Not only that, they went a step forward and made downloads even more appealing by allowing you to download the minimum possible to play the game, and just do the rest while you play.

comment 13y ago · link · parent

Or, the ranking algorithm was previously designed for this not to have an impact, and as real-world usage showed abuse, they changed it. Repeat this cycle until now. So the techniques to game the algorithm changed, hence the algorithm changed, hence the stance changed... Constantly, we don't live in a static web.

(EDIT: Also of note is the fact that this change was from a year ago, and the previous one was in 2003 ... So. Yeah)

comment 13y ago · link · parent

"When the facts change, I change my mind. What do you do, sir?" - (attributed to John Maynard Kaynes)

The algorithm has changed. The web has changed. Naturally, google has changed.

comment 13y ago · link · parent

The double unescape in the comments felt kinda like "Enhance!" "Enhance!"

comment 13y ago · link · parent

It's bros... that are gamers.

comment 13y ago · link · parent

Chill out dude. I didn't say you were a bro gamer, I didn't say I agreed with the term. I tried to answer Caskain's question on "how did they alienate gamers", and yes, part of it is the sentiment of catering to bro gamers. But notice the usage of quotes. Follow your own advice.
1234