Lurker News

Comments (319) 80 threads

kgeist2 replies#
I wonder what are the security implications. I just opened a random URL and an arbitrary application was launched inside my Internet OS desktop. What if someone gives me a link to a malicious password stealer, for example? I think a permission system would be nice.
Intralexical#
There is a permission system I think. It's described in the developer docs:

> […] your app will get a few things by default: […] An app directory in the user's cloud storage […] A key-value store in the user's space […]
> > Apps are sandboxed by default! Apps are not able to access any […]
https://docs.puter.com/security/
I guess that refers to the cloud storage/backend. Clientside apps seem to run as IFrames, so should be subjected to normal browser sandboxing (…and actually, I guess, multiprocessing too), with only explicit message-passing.
Honestly I think the developer API could have been better highlighted by this HN post. Puter's actually doing a bit more than the Desktop Environment mockup that's visually apparent, and not featuring that seems like a wasted opportunity to pick up some app developers.

evere#
Maybe it could be "sandboxed" in an iframe?
splatzone3 replies#
I can't get past the menu, is it just me?
samieljabali#
Got to use the keyboard to navigate the menu.
TrackerFF#
worked fin here, launched a multiplayer game - everything seemed smooth.
RobotToaster#
Not working on firefox for me.
LeonM1 reply#
Honestly blown away by this. Graphics, audio, everything just works (tm).

I've seen many 'desktop in browser' type demos over the years, but never anything like this. This is impressive on so many levels.

Intralexical#
On a technical level it's actually not that impressive. Mozilla got BananaBread/Sauerbraten running with WebGL on netbooks over a decade ago, with much more advanced graphics than Xash3D:

https://kripken.github.io/misc-js-benchmarks/banana/index.ht...
https://wiki.mozilla.org/HTML5_Games/BananaBread
The Half Life "app" above actually just wraps an existing Emscripten port in an IFrame. Puter does provide an abstracted filesystem (and other "OS" features), but I don't think the app above uses that, so it's no different than if you went to `data:text/html,IntralexicalOS!

RGamma4 replies#
The circle is finally complete! Now of course you want to use a browser within puter as well: Browser in browser OS in OS in virtual machine...

It's mind boggling how far one can torture the concept of markup documents to eventually arrive at something like this... just so users don't have to install software.

oblio4 replies#
Millions of people have been killed so that other people wouldn't have to wear itchy clothes.

Convenience is the most powerful force in humanity.

projektfu#
Was that the merino massacre of 1887?
lukas0991 reply#
Something to do with the Silk Road?
oblio4 replies#
Silk, and in general almost every type of clothing until modern cotton processing. Most traditional clothing was very coarse and one of the most obvious class indicators, across millenia.

Continue this thread — 4 replies

yowayb1 reply#
Convenience is the mother of invention
tamimio#
*laziness
mc321 reply#
Was linen itchy? At least modern linen is not itchy. Presumably it would have been less itchy than coarse wool even nice wool.
oblio#
Itchy is maybe exaggerating, but as far as I know, lower class clothes were very coarse compared to modern ones.

A lot of natural fibers need a lot of strength to be spun into finer threads and we didn't really have that on a large scale until the 1800s.
Plus distribution was much harder so in many remote parts were stuck with whatever they made locally, which was most likely subpar even for their times.
Cotton tech in the 1800s really revolutionized clothing.

RobotToaster1 reply#
Can the browser on puter run puter though?
jauntywundrkind#
Given what the web is, it makes me exceedingly sad we don't see the page as a browser of many sites more often. That a page mostly just dials home, to its own server, is radically less than what web architecture could be, is a mere readopting of the past.

Efforts like Tim Berners-Lee's Solid seem like a great first step. There's also a variety of Mastodon clients one can run as PWAs, which both is an example but also a bit of a counter-examples: the page can dial anywhere! But then that Fediverse server intermediates & connects you out to the world. RSS readers too; dialing home to connect with the world. Instead we could perhaps have a client that reaches out directly. Then that activity of reading & browsing, keeping track of favorites and what not: that would have to be sent home or otherwise saved.

lavrton4 replies#
To me, Puter platform has a huge potential. And as a developer, I already have large value from it.

Using puter.js I was able to add full cloud storage for my design editor https://studio.polotno.com/ without messing up with auth, backend and databases.

ent101#
Thank you, Anton! Polotno is incredible. I recommend everybody to check it out!
samsquire#
I like this thinking.

If someone could combine Supabase + Postgrest or Hasura with an easy visual admin dashboard for them inside this, this could be a complete easy to access, easy to deploy platform.

genuine_smiles1 reply#
Could you elaborate on how Puter helped?
lavrton1 reply#
Polotno Studio is a free app. And for a long time, it didn't even have the ability to signup and save created designs into a cloud.

I didn't want to invest my resources into "cloud saving" feature (as it is a free app). Setup full authorization, setup database, setup servers and tons of other work to finish the cycle.
https://docs.puter.com/ gives a very simple, yet powerful client-side js SDK to enable full cloud saving and loading of data for my users. I spent a couple of days for integration. Doing everything by myself with full hosting would take weeks, if not months.

exodust2 replies#
Sounds good, but it seems the sign-in feature pops open a new window to the puter.com domain. Does the SDK provide any means of avoiding this and keeping everything integrated on your app without pop-up windows?

Also I'm confused about how you pay puter for the service. What if a million people suddenly use your app, and sign-up? As the app owner, do you have access to the users who signed up? Can you export those members in case you wanted to import them somewhere else if you moved your app?

Continue this thread — 2 replies

dwilding1 reply#
I agree, this opens up really interesting possibilities.

Here's my understanding of how it works, based on the puter.js docs [1]:
If I'm developing a frontend app that could benefit from cloud storage, I can load in puter.js as my "backend". I don't need to worry about user auth because puter.js will automatically ask the user to create an account or log in. I also don't need to worry about managing & paying for cloud storage because puter.js will take care of that on a user-by-user basis - including asking the user for payment if they go over their free limits.
I haven't actually used puter.js yet. But if I understand correctly, this could be a really powerful model. As the developer of a niche app whose purpose is not to bring in revenue, puter.js seems like a very reasonable way to pass on cloud storage costs to end users, while also reducing development effort!
[1] https://docs.puter.com/

Ajedi322 replies#
Interesting! What's the advantage of Puter in this scenario compared to, say, Google Drive, or Dropbox?
lavrton#
I would say much simpler integration. puter.js SDK is super straightforward and fast to integrate.
dwilding#
As lavrton said in a sibling comment - simpler integration.

I can't speak to Dropbox integration, but every time I've looked at integrating with Google Drive I have felt my development effort growing, not shrinking.
Puter also seems to place a high value on privacy, which I like.

mavili2 replies#
This is insanely cool! Looks really slick too, even in a mobile screen.

jQuery?? I cannot imagine how difficult it is to not break this when you make the slightest change, hats off for managing with vanilla Javascript and jQuery! The best thing about React for me is to not have to worry about breaking the DOM or messing up with event handlers because some jQuery line, somewhere obscure is probably doing something funky that is really difficult to track down!

Intralexical1 reply#
Oh, wow. When this came up before, I don't know if I looked at the DOM, because I assumed you would do this type of thing by drawing pixels on a Canvas. It's actually made of HTML elements? That's impressive.
Aaronmacaron5 replies#
I too think it's very impressive but wouldn't it be even more impressive if it was made using canvas? It would mean that you would need to implement your own rendering loop and layout engine. You'd need to reimplement a lot of elements such as input fields or buttons. You get all of this for free when building on top of HTML/CSS.
noduerme#
You do get a lot of UI elements for free, but styling them consistently and getting them to layout properly becomes a lot more difficult.
Intralexical1 reply#
I think it would likely be more technically involved and complicated if it were made with `canvas`.

But large blobs drawing to `canvas` aren't anything new at this point. The part that impressed me is doing it the simple way, using what the browser already provides, and getting it to work this well.

Continue this thread — 1 reply

Continue this thread — 1 reply

mrBurger#
I dunno, once you write the renderer, you essentially have no limits to worry about.

Working within the confines of HTML is way more impressive to me.

Continue this thread — 1 more reply

Continue this thread — 1 more reply

Load more comments