1,262 karma · joined Mar 7, 2014 (12y ago) · 293 submissions
https://www.digitallyinduced.com/
marc a t digitallyinduced com
61.
1 points · by _query · 4y ago · discuss
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
We've initially built the technology already for IHP DataSync (https://ihp.digitallyinduced.com/Guide/realtime-spas.html). So we used what we already had here :)
> Why websockets?
We also use the WebSockets to do write operations. This allows for lower latency than doing a HTTP call for any API call. Additionally we run all operations in parallel. With HTTP push we wouldn't be able to easily run all these operations in parallel.
comment 4y ago · link · parent
You can find the source code here https://github.com/digitallyinduced/ihp/blob/master/IHP/Data... if you're interested :)
comment 4y ago · link · parent
comment 4y ago · link · parent
Next to great user experience, building your application in a realtime way also allows to simplify the state management in certain parts.
A typical react app might use something like redux to store a subset of the application's database state locally. Now whenever you do any write operations to your data, you need to make an API call and also make sure the local redux state is kept in sync.
When you're embracing realtime everywhere, you avoid this, because any write operation automatically updates your realtime data, so you don't need to manually e.g. update your redux state. This allows you to skip a lot of the code that's needed for state management locally, so it saves a lot time and bugs (less code => less bugs).
73.
IHP v0.19 has been released(github.com ↗)
2 points · by _query · 4y ago · discuss
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
E.g. with Haskell Language Server we have nice autocompletion. Recently dot-notation has been added, so you can now write `someValue.someField` as in other languages. And the documentation is improving as well.
If you're doing web development, a good starting point is IHP (https://ihp.digitallyinduced.com/ https://github.com/digitallyinduced/ihp). IHP is Haskell's version of Laravel/Rails/Django. It's really a superpower to have Haskell's type system combined with the rapid development approach of Rails :) (Disclaimer: I'm founder of the company that makes IHP)
comment 4y ago · link · parent
IHP is a new Haskell framework with a focus on actual building applications. Imagine the productiveness of rails combined with the typesafety of Haskell.
It's now already the biggest Haskell web framework, we just hit 3200 GitHub stars. I belive Haskell can reach a lot more than it's currently doing if we get things easy to use.
If you want to build a web app with Haskell and play with type classes check it out: https://ihp.digitallyinduced.com/ GitHub: https://github.com/digitallyinduced/ihp
comment 4y ago · link · parent
Thin is mostly based on IHP DataSync. You can the source code here https://github.com/digitallyinduced/ihp/blob/master/IHP/Data... Thin itself is just a "thin" wrapper around IHP and IHP DataSync.
Additionally most of the system is just relying on postgres for doing it's work. So if you ever want to swap out Thin with another API, you could build a normal REST API, connect it to the database and switch it out.
comment 4y ago · link · parent
We also have an integration for ReScript https://thin.dev/docs/rescript
More to follow in the future
comment 4y ago · link · parent
Our pricing still might change a bit in the future. I'm with you that with a couple hundred users it shouldn't cost more than 5-10$ to host this app.
The Thin Pro plan already includes 5GB for free, so we might increase these 5GB to a bit more.
comment 4y ago · link · parent
comment 4y ago · link · parent
In some ways Thin is designed a bit more opinionated. This allows us to e.g. support optimistic updates out of the box.
Supabase generally also exposes very low level APIs (basically just a REST Api via PostgREST), where we offer very high level APIs that sent over a WebSocket.
comment 4y ago · link · parent
Thin can quickly be integrated in an existing stack as long as you're using postgres.
The value proposition with an existing backend can be: Improved UX thanks to very low latency. E.g. Thin automatically does optimistic updates when you're inserting or updating a database record. This results in a really nice user experience compared to what you'd get with a normal REST Backend.
I've no experience with blitz.js. From a first look it seems it goes in the same direction. Blitz.js is not leaning on realtime as much as we're doing. Additionally it seems that it doesn't provide optimistic updates out of the box.
On IHP: Yes! :) IHP has a promising future ahead! All the Thin Feature are btw also supported in IHP. The Thin JS library is just a small wrapper around the IHP DataSync SDK :)