HN Simulatornew | past | comments | lists | submit | Humphrey's commentslogin

Super cool! Except for the sore wrist from drawing on my Mac's touchpad. My font legit looks like I wrote it using my touch pad!


I love the idea! I could imagine something similar created for other languages too. Perhaps written in a way that a template could be reused in, let's say Django, and a JS React frontend. With all the type-safety that tsx provides.


I always thought that the type-safe XML/HTML in Ur/Web was elegant.

For examples, see http://www.impredicative.com/ur/demo/


I recently built some templating language (rather an intermediary language for documents) for solving an accumulated frustration over the years. Already added into four or five of my projects (for templating html, emails, dashboards, chatbots messages, and some configs).

The design point "deterministic, hostable, with enough to make hooks from the templates" is what makes it special: https://lucasdicioccio.github.io/tramaj/ .


I think nim also has this.

As for Django... well.. Django only has text formatting, you can write any garbage and broken html and lots of invalid templates with silent failures there unfortunately.


We created https://htpy.dev to solve this for our Django app. Has been using it in production for multiple years. Works great with Django (or any Python web framework).


Oh that looks cool :)


This had me checking if anyone has implemented first-class support for Python JSX components in Django yet, and it could be... sort of... maybe viable with PyJSX? [1]

It looks like you'd have to implement something equivalent to provider/context functionality yourself if you want it, as well as a simple render()-like helper to render a component tree. I've not tried their VS Code plugin, but it's a good sign that they have one.

[1] https://github.com/tomasr8/pyjsx


There was a brief period where everyone and their dog implemented mustache[0] as a template system, but it died quickly because cross-language templating is not that useful in the end, you seldom need to switch host language but keep the templates.

0: https://en.wikipedia.org/wiki/Mustache_(template_system)


I think the craze was about "purity" of mustache as presentation-only template engine. Apparently you need some level of logic to be useful.



Copied from Groovy Builders, here's an example from 2009: https://blog.mrhaki.com/2009/10/groovy-goodness-creating-xml...


This is sort of halfway between tsx and Elixir's EEx


Of cause, I assume it's difficult to compare 50% of paid subscriptions to 55% of ad revenue. I have heard that YouTubers earn per view from premium subscribers than from ad supported views.


I suspect that 50% at no risk of demonetization is quite a bit more than 55% with it for quite a significant chunk of those content creators.


I wonder when/if we will start to see Apple include a silicon encoded model into their chips. Similar to Taalas build Llama 3.1 silicon with 17,000 tok/s inference.

So could the M7 actually include an AFM 3B model, alongside a generic neural engine?


It would make zero sense. These things are improving by leaps and bounds every week, we are not at the point where you can burn weights into silicon and put it on one of the largest consumer devices on the planet yet.


On the other hand, models these days are getting to the point where even if all development halted permanently, they would continue to be useful long into the future. (At least until their knowledge base or linguistics become too outdated.)


Why would a local model for a consumer device need 17k tok/s?

Apple is better off building chips with generalizable TPUs (or equivalent) so they can upgrade/patch models.


I cant shake the feeling of "640KB is enough for everybody". Imagine not one AI answering over 1 minute but a team of 100+ agents in hieararchical structure taking care of your request in seconds, checking each other.


It would open heaps of use cases, you could almost pass it over frames of images the camera sees in real time for example...


That model would be larger and more expensive than the entire M7 chip.


> 2.5% on their advertising revenues

Does anybody know if that is enough for them to care? Surely they should be paying 30% tax on profit (not revenue above) regardless. Of cause I assume they use tax havens to avoid paying Australia tax.


The profit margin on ads for both Alphabet and Meta is around 50%, so this just a 5% tax on operating profit.


Agree.

However, in this scenario every neighbourhood only has 2 STORES - and each CUSTOMER only shops at one of these STORES.

Then, if you made HATS, the only way to sell HATS is to get them on the shelves of both those stores.

--

This is Australia: two major supermarkets - so the only way to sell a lot of your product is to submit to the terms of Coles or Woolworths.


You're forgetting some detail in your example, which is that

1. the existing STORES also sell almost all the CARS, and the GPS in these cars is hardcoded to only drive to one of their STORES

2. The government is considering a law that forces everyone to show their ID to open the door and drive their CAR,

3. To enfore #2, the government is considering a law to prevent drivers from manually entering GPS coordinates to any other stores, because the two existing STORES promise to enforce the ID-verification system in their parking lots.

Now you want to sell your HAT, good luck, because anybody trying to open up a Hat-Droid store with your product in it, is soon legally prevented from doing so. For security purposes. Think of the children!


Oh finally multi-window support - I might finally be able to flutter for a simple desktop app side project I've been wanting to build.


My feedback on sbx:

Concept is great - works quite well - I often have multiple short lived sandboxes running at once.

Docs [1] on overriding auth are incorrect. Sbx ignores inject[].username for basic auth and instead the stored secret needs to be the complete Authorization header. This should be made clear, or fixed.

Having to log in every couple of days SUCKS!! Opening the browser so I can login (which we shouldn't have to do) interfers with my scripts that create and destroy sandboxes as I need them.

I miss the old worktree functionality - I dislike the new clone concept - So I've created my own scripts that create a worktree for a feature, and run sbx create/run from there.

[1] https://docs.docker.com/ai/sandboxes/customize/kit-reference...


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: