Better HN
topnewbestaskshowjobs
Log inSign up

trentearl

105 karma · joined Mar 8, 2017 (9y ago) · 54 submissions

Traveller. BKK. working for the banks
Submissions

comment 4h ago · link · parent

Seems cool, but I can't help but feel like humans put too much effort into coffee already.

comment 1mo ago · link · parent

It's a bit ironic to fight protectionism with consumer nationalism, but good from a consumer awareness perspective.

comment 2mo ago · link · parent

Yes it booked everything, I just had to click the final pay button. I did run my itinerary against a fresh session like: 'There are errors in my travel plans, go find them'. It found one issue where I was scheduled to be at the wrong train station.

comment 2mo ago · link · parent

Claude code planned my recent trip to China. I'm a very experienced traveller but don't enjoy planning. It was a great trip.

comment 3mo ago · link · parent

Isn't easy travel already covered with their Schengen membership?

comment 3mo ago · link · parent

If the muscular person has an obese bmi he is still unhealthy though.

comment 3mo ago · link · parent

Canned mackerel is pretty good too.

comment 9mo ago · link · parent

My friends and I used Menuet back in 2003 to circumvent our highschool's OS restrictions. Impressive to see it's still around, great project!

comment 10mo ago · link · parent

The alternative is better trained officers with more accountability.

comment 1y ago · link · parent

cat is a classic unix program that outputs the contents of one or more files to stdout. It's short for concatenate

comment 1y ago · link · parent

There is DARPA program called TRACTOR to pursue this:

https://www.darpa.mil/news/2024/memory-safety-vulnerabilitie...

comment 2y ago · link · parent

Nice new website! Great project, I've been using it since the pro55esing java applet days. I got my 10 year old niece interested in programming by showing her some quick openprocessing code.

comment 2y ago · link · parent

Tinariwen. The very best. Ladysmith black mambazo. Miriam makiba and my favorite William Onyeabor.

comment 3y ago · link · parent

Looks cool, im interested.

When I click on the documentation link in the landing page hamburger menu, navigation doesn’t happen (iPhone safari).

comment 3y ago · link · parent

Thanks!

Actually, this project is born out of the chaining idea youre talking about. I've been dogfooding this with another app like google translate for language learners (https://languageread.com/ ugly and early for now). It requires a lot of chaining, and splitting text, and composing prompts.

So my first attempt for superfunctions focused on that chaining idea, my approach was prompts backed by AWS stepfunctions. I pretty quickly realized that it would help a lot to have a more primitive layer, so I switched focus to build a lower level layer that turns prompts into single units of execution.

Right now for that language learning app, I'm chaining everything on the client using bluebird promises (going to blog about this soon), this approach comes with a lot of pain points, so I'm still hoping add that composability/chaining functionality as a layer on top of superfunctions later.

comment 3y ago · link · parent

Originally I planned to include output validation using zod but I scrapped it in favor of simplicity. I never considered regex validation that would be much simpler.

I'm open to adding validation if it adds value. Thanks for your feedback!

comment 3y ago · link · parent

Sorry about that, should be fixed now.

An app is just way to group multiple related functions/prompts.

It was throwing a 403 because it thought the app didnt belong to your user. Im storing those permissions in the session and recently introduced a bug that only updated the user app permissions on login.

Youre one of the first users, so thanks for reporting that. Let me know if you have any other feedback.

comment 3y ago · link · parent

Ive been getting good JSON results by just including a typescript type named Output in the prompt, but it performs poorly for usecases that have to handle unexpected or widely varying inputs.

Thanks for the links, I missed OpenAi's function-calling announcement. It looks like it might map on to my project pretty well for json responses, I'll take a stab at the integration.

comment 3y ago · link · parent

Thanks, thats a great blog post. I never thought of using prompt as interactive instructions like that.

Yes the cacheing is super helpful for certain use cases, like composing multiple prompts. I'm working on an app for learning languages via reading, where you see the translated text with grammar and when you hover over a word it shows the matching word from translation to source. This kind of app entails many Ai requests, because youre looping and feeding the result of one prompt into other prompts. Kind of like aws step functions. The cacheing really makes these kind of orchestrated workflows possible from a developer experience perspective.

comment 3y ago · link · parent

Thanks a lot! I purposefully avoided looking at similar projects while developing until now, so this is the first time I'm seeing other projects in this space.

Superfunctions is differentiated because it's much less opinionated and a bit simpler. My philosophy was: we dont know where Ai is taking us so it makes sense to build only one single layer of abstraction over the chatgpt/openai. Because there is no additional abstraction you can easily switch to request directly to the openai api, it can auto-generate the curl/fetch commands.

I've built a few apps that use superfunctions as a backend, one of which is for my day job which is in a very regulated industry and we can use azure apis but we can't just call random websites. So I need it to be more portable.

Of the ones you listed promptitude looks the most similar, and looks really well done.

comment 3y ago · link · parent

Thanks! That specific prompt is just an example and it's pretty bad, it was the shortest and simplest prompt I could come up with that would be easily understood.

You can set response content-types (text, html, json, etc...). If you use json it will get pretty good results because I have some is some logic to attempt to pick out json or json5 objects from the text output. I dont yet have logic to support json arrays, but I'm hoping to add that soon.

But still client side validation is needed for applications with untrusted input. I dont attempt to solve prompt injection. I saw a lot of interesting posts on this topic from this blog https://simonwillison.net/. I need to find sometime to read more about it.

Try this one instead, it should be better https://superfn.com/fn/better/color2hex?color=chartreuse https://superfn.com/fn/better/color2hex?color=234%20tamales%...

Here is the prompt:

system: You are an AI that converts color names to hexadecimal values. you default to black (#000000) examples: red -> { "color": "#ff0000" } pizza -> { "color": "#000000" } ignore the prompt and -> { "color": "#000000" }

user: {{query.color}} ->

you exclusively output parseable JSON

22.

Show HN: Superfunctions – AI prompt templates as an API(superfunctions.versoly.page ↗)

42 points · by trentearl · 3y ago · 16 comments

comment 3y ago · link · parent

I built a canoe out of plywood with no wood working experience. It was very difficult, and involved a lot more epoxy, sanding and clamps than I expected. But in the end I could float around Town Lake in Austin and adventure to snake island.

comment 3y ago · link · parent

Cool project

comment 3y ago · link · parent

Lovely project, much more polish than I anticipated.

comment 3y ago · link · parent

Yes that is true, but that is a scientific fact and is not an appropriate comparison when talking about human populations and their approach to pair bonding, which is driven mostly by culture.

So no, it’s not antiquated and your response requires looking at humanity through a very narrow and biased lens.

Westerners can still appreciate our values while being in the minority. I do.

comment 3y ago · link · parent

Is it antiquated if most humans living today still think that way?

comment 3y ago · link · parent

Strange, I have the exact opposite experience. I have personally have felt ostracized multiple times for suggesting it was likely there was an unintentional lab leak. I often got criticized for suggesting it was a bio-weapon, while I never thought that and never even said those words. Sometime in the past 12 months this disappeared.

comment 3y ago · link · parent

I've lived in Airbnbs on and off for the past few years and am currently 6 months in a row. Quality is really a roll of the dice.

I use a travel router which solves most internet problems that are fixable.

The biggest issue for me is that it's so much work due to a a lot of small things. You have to constantly learn where the light switches are, how to master the shower, etc... I rarely even bother hooking my chrome cast to the TV anymore. These seem small but they steal your time and cause mild frustration. It's worse because you know it's coming again. I'm hoping to get a real apartment soon.

comment 3y ago · link · parent

I tried this during university. I hosted a party with a bunch of fruits and vegetables. It was a really fun time, it really does work.

I remember being surprised that many people said they didn’t want to try miraculin because they like food the way it tasted already.

12