News for hackers. Stuff that matters.

_query

Re:Haskell Optimization Handbook on Tuesday May 30, 2023 @02:01PM (#36128212)
In case this got you interested in Haskell, and you want a good way to start your Haskell journey (and have something to apply the optimization handbook to), check out IHP. It's the Rails/Laravel of the Haskell world. Here's a demo video https://www.youtube.com/watch?v=UbDtS_mUMpI You can start here https://ihp.digitallyinduced.com/Guide/index.html or check it out on GitHub here https://github.com/digitallyinduced/ihp
At IHP we've been using Algora for a while now and it works really great. Here's e.g. one PR that was merged last week with a bounty attached https://github.com/digitallyinduced/ihp/issues/1621 Everything was set up in less than 15 minutes and ioannis and zafer have been super helpful with any questions we had.

In general I think this is a good direction and an interesting take on the open question around sustainable open source. Congrats on the launch and keep up the great work! :)

Re:School of Haskell: Basics on Saturday November 12, 2022 @04:18AM (#33571493)
Cachix manages the prebuilt binaries used by IHP. If you don't install Cachix, nix will compile a lot of IHP's dependencies from scratch. This takes a long while and is not recommended.
Re:School of Haskell: Basics on Friday November 11, 2022 @10:25AM (#33561944)
If you're interested in building web apps with Haskell, check out IHP. IHP is the Laravel/Rails/Django of the Haskell world. Might be a more pragmatic way to get into Haskell than SchoolOfHaskell

- Intro video demoing how to build apps with IHP: https://www.youtube.com/watch?v=UbDtS_mUMpI

- Docs to get started: https://ihp.digitallyinduced.com/Guide/index.html

- IHP reviews: https://www.g2.com/products/ihp/reviews

There's a couple editor plugins to get you that: For VS Code: https://marketplace.visualstudio.com/items?itemName=s0kil.vs... for

For Sublime: https://packagecontrol.io/packages/Haskell%20HSX

Check out the docs on editor integrations: https://ihp.digitallyinduced.com/Guide/editors.html

With VSCode the editor integration and autocompletion should work really well. You can see a demo in this video: https://www.youtube.com/watch?v=_8_8XYO6rgY

Thanks! :) I appreciate your feedback
The IDE is mostly designed as an extension to an editor heavy workflow (e.g. I use Sublime + VIM to build IHP itself). So it's unlikely to work well with a Chromebook. A workaround might be to use the GitPod integration for a web based code editor.

The IDE is btw entirely optional and everything can be done via code. E.g. all operations done via the visual Schema Designer are saved in the Application/Schema.sql file. That file can be edited from a code editor as you want. All operations in the schema designer operate on the AST of the parsed Schema.sql file.

Really happy we've finally got to the 1.0 status :) If you like to take a look at the code, check our GitHub at https://github.com/digitallyinduced/ihp
Yes, you can get pretty far without knowing anything about Haskell. Once you've something on the screen you'll eventually get to learn a bit more about functional programming and Haskell.

A good starting might btw be our IHP Casts Youtube playlist https://www.youtube.com/watch?v=PLl9Sjq6Nzc&list=PLenFm8BWuK...

IHP is really easy to package with nix nowadays. In fact the official docker building also just uses `pkgs.dockerTools.buildImage` and calls nix-build :) Most people with nix experience can easily figure out how to do exactly the same thing as the "official" way.
There's some unofficial ways to build docker images, check https://zacwood.me/posts/building-ihp-apps-github-actions/ :)

We've not changed our minds on docker becoming a free feature eventually. We just didn't update the pricing yet, but this is planned for the near future.

Re:Why We're Moving on from Firebase on Saturday October 15, 2022 @02:40PM (#33217407)
Check out thin.dev https://thin.dev/ It uses SQL DDL statements literally as the building blocks for everything.
Just to clarify: The basic version of IHP is free and open source. The IHP Pro subscription is only if you want some closed source features.

IHP users that built business critical apps with IHP actually liked it very much that we've introduced the subscription. It gives people more confidence that the framework will still be there in the longterm future.

You can find some more thoughts on this here: https://ihp.digitallyinduced.com/blog/6392ad84-e96a-46ce-9ab...

Here's a quote from someone in the Haskell community that says it well https://twitter.com/mattoflambda/status/1275469470559907840

> You thought Yesod was Rails? Nope. Yesod is a highly modular library for developing web applications with a few opinions and some scaffolds.

> IHP is Rails - all the components are glued together in a way that makes modularity difficult.

IHP actually provides a `cs` (cs as an abbrev for convertString) function that is always in scope. With that function you can easily convert between all different string types.
Yes, the paid features are part of a closed source fork of IHP
Thanks for the feedback!

Check out the docs for email confirmation here: https://ihp.digitallyinduced.com/Guide/authentication.html#e... You'll see that most parts of the confirmation workflow actually happen inside your application. Only the actual controller implementation is part of IHP pro, and it's just 20 lines of code. So you can easy implement this yourself.

Generally IHP uses a lot of standard libraries of the Haskell ecosystem. So you can always break out of IHP when things don't work. It's not much more lock in than other frameworks in the space :)

Some more background on the ideas behind the pricing can be found here btw: https://ihp.digitallyinduced.com/Guide/ihp-pro.html

We don't have a comparable ecosystem yet, but IHP uses many popular Haskell libraries under the hood. So many normal Haskell libraries integrate very well, as the underlying data structures are always exposed. Functional programs compose well in general due to it's stateless nature, that helps as well.

IHP also comes with a lot of things you'd typically use external packages for (e.g. Auth).

In general the IHP experience is very different from other Haskell web frameworks and much more batteries included, so a lot of apps typically don't need any external packages at all.

IHP is basically the rails/laravel/django of Haskell. If you haven't tried Haskell before or think Haskell is only about monads and math, give it a try and be surprised :)

Some links if you want to try out IHP:

- Intro video demoing how to build apps with IHP: https://www.youtube.com/watch?v=UbDtS_mUMpI

- Docs to get started: https://ihp.digitallyinduced.com/Guide/index.html

- IHP reviews: https://www.g2.com/products/ihp/reviews

Happy to answer any questions on IHP :)

Older »