Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Victor El Hajj
    @VictorElHajj
    Would love to help, been spending a lot of time trying to fix this. I tried adding data-turbolinks-preload='false' to the links without removing morphdom and that didnt work, neither did removing morphdom so yeah I'd love to help
    Alex Zuzin
    @zvozin
    Hey all. Following https://ihp.digitallyinduced.com/Guide/your-first-project.html#3-data-structures-postgresql. Not succeeding at right-clicking - right-clicking anywhere in the admin GUI just gives the normal browser context menus. Catalina 10.15.7, Chrome 86, or Safari 14. Hacking around things manually obviously works, but wanted to raise it here jic.
    Andrea
    @andreatrygit
    Hi there, new to this...
    Does hsx provide any sort of reactivity? Is it "just" templating?
    Thanks!
    Marc Scholten
    @mpscholten
    @zvozin thanks for mentioning. Is there any output in the JS console that maybe some error happend?
    maybe you can send a quick video / screenshot?
    @andreatrygit not yet. We plan to add custom serverside components in the future. Here’s a draft: https://gist.github.com/mpscholten/7558084941f3ebf6c1e6950e2db713c6 We also have AutoRefresh which allows to automatically rerender the view when the underlying data changes
    Andrea
    @andreatrygit
    @mpscholten thanks for your reply 👍
    @mpscholten AutoRefresh is embarrassingly good!
    Andrea
    @andreatrygit
    SSR components seems promising. Is there any roadmap around? ... it is dreamt that IHP might one day rival Nextjs as for ease of use and completeness... Please keep going :top:
    Marc Scholten
    @mpscholten
    AutoRefresh is so good that we didn’t need the SSR components anymore for our projects :D that’s why we didn’t add components yet. There will definitly be a prototype of this still this year, most likely in the next couple of weeks
    Thanks :) yes that would be amazing. We’re basically doing the Nextjs/Vercel/JamStack/Netlify playbook but with type safety and backend instead of frontend :D
    Andrea
    @andreatrygit
    :top :top :heart: wanna see!!
    Andrea
    @andreatrygit
    What kind of scalability does one expect from IHP? Something a lá EC2 or maybe more like lambdas? Tks
    Marc Scholten
    @mpscholten
    more like EC2. We haven’t hit any limits yet
    IHP will take part in the next round of https://www.techempower.com/benchmarks/ (the benchmark code is already merged, we just need to wait for TechEmpower to start the next round). Then we might have more numbers to compare
    matrixbot
    @matrixbot
    sm Marc Scholten (Gitter): cool! And er, may the force be with you. That benchmark has been tough for haskell
    sm great work participating
    Marc Scholten
    @mpscholten
    Thanks :) I hope we get to spend some more time on optimizing everything for performance in the future
    Andrea
    @andreatrygit
    Best wishes! See you in techempower!!
    Andrea
    @andreatrygit
    Hey! Which websites run on IHP at the moment?
    Marc Scholten
    @mpscholten
    you can find some projects in this twitter tweet: https://twitter.com/digitallyinduce/status/1324767636102795264
    Kevin Brubeck Unhammer
    @unhammer
    https://corecursive.com/040-tech-evangelism-with-gabriel-gonzalez/ might be interesting for those out there evangelising IHP
    Marc Scholten
    @mpscholten
    Thanks for sharing :) Can also recommend the book Crossing the Chasm
    Amar Memišević
    @factoryamar_gitlab
    Hello, contributions allowed ?
    Marc Scholten
    @mpscholten
    Yes 🙌
    Michael Fliegner
    @Kaeptenblaubaer
    Moin! Pls Help:
    builder for '/nix/store/azala4z9fp2yg464fl9v1xhdfw6his1r-haskell-language-server-0.4.0.0.drv' failed with exit code 1
    cannot build derivation '/nix/store/i8zdml28sz972diz5dajqiwjks3kj058-ghc-8.8.3-with-packages.drv': 1 dependencies couldn't be built
    error: build of '/nix/store/i8zdml28sz972diz5dajqiwjks3kj058-ghc-8.8.3-with-packages.drv' failed
    Uzay-G
    @Uzay-G
    Hey! I was wondering how IHP performed on speed. It seems like a really cool project coming from rails :)
    Marc Scholten
    @mpscholten
    on average you can expect response time around ~15 - 40ms on content intensive pages :) rails is usually more like 500ms on content intensive pages
    Michael Fliegner
    @Kaeptenblaubaer
    Hi! See above. Is the guide outof date wrt haskell language server? I followed it and got the above error.
    Marc Scholten
    @mpscholten
    hey, should not be outdated. what is the full console output?
    Michael Fliegner
    @Kaeptenblaubaer
    hey, should not be outdated. what is the full console output?
    ...
    [ 8 of 20] Compiling Ide.Plugin.Fourmolu ( src/Ide/Plugin/Fourmolu.hs, dist/build/Ide/Plugin/Fourmolu.o )
    
    src/Ide/Plugin/Fourmolu.hs:70:22: error:
        • Couldn't match expected type ‘Maybe FilePath
                                        -> PrinterOptsTotal -> m PrinterOptsTotalwith actual type ‘IO ConfigFileLoadResult’
    The function ‘loadConfigFile’ is applied to three arguments,
          but its type ‘FilePath -> IO ConfigFileLoadResult’ has only one
          In a stmt of a 'do' block:
            printerOpts <- loadConfigFile True (Just fp') defaultPrinterOpts
          In the expression:
            do printerOpts <- loadConfigFile True (Just fp') defaultPrinterOpts
               return
                 $ defaultConfig
                     {cfgDynOptions = o, cfgRegion = region, cfgDebug = True,
                      cfgPrinterOpts = printerOpts}
        • Relevant bindings include
            mkConf :: [DynOption] -> region -> m (Config region)
              (bound at src/Ide/Plugin/Fourmolu.hs:69:5)
       |
    70 |       printerOpts <- loadConfigFile True (Just fp') defaultPrinterOpts
       |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    src/Ide/Plugin/Fourmolu.hs:70:37: error:
        • Couldn't match type ‘Bool’ with [Char]’
          Expected type: FilePath
            Actual type: BoolIn the first argument of ‘loadConfigFile’, namely ‘TrueIn a stmt of a 'do' block:
            printerOpts <- loadConfigFile True (Just fp') defaultPrinterOpts
          In the expression:
            do printerOpts <- loadConfigFile True (Just fp') defaultPrinterOpts
               return
                 $ defaultConfig
                     {cfgDynOptions = o, cfgRegion = region, cfgDebug = True,
                      cfgPrinterOpts = printerOpts}
       |
    70 |       printerOpts <- loadConfigFile True (Just fp') defaultPrinterOpts
       |                                     ^^^^
    ...
    [20 of 20] Compiling Ide.Version      ( src/Ide/Version.hs, dist/build/Ide/Version.o )
    builder for '/nix/store/azala4z9fp2yg464fl9v1xhdfw6his1r-haskell-language-server-0.4.0.0.drv' failed with exit code 1
    cannot build derivation '/nix/store/i8zdml28sz972diz5dajqiwjks3kj058-ghc-8.8.3-with-packages.drv': 1 dependencies couldn't be built
    error: build of '/nix/store/i8zdml28sz972diz5dajqiwjks3kj058-ghc-8.8.3-with-packages.drv' failed
    Marc Scholten
    @mpscholten
    what IHP version are you using?
    is your Config/nix/nixpkgs-config.nix maybe outdated? We changed that file a while ago when adding support for haskell language server
    Michael Fliegner
    @Kaeptenblaubaer
    @mpscholten I used ihp-new and then applied the advice in the guide ( where btw nixPkgsRev = "07e5844fdf6fe99f41229d7392ce81cfe191bcfc";)
    ihp = builtins.fetchGit {
        url = "https://github.com/digitallyinduced/ihp.git";
        rev = "d02a0699220a87d32889ff2a7b87ad81f8bc8195";
    };
    Michael Fliegner
    @Kaeptenblaubaer
    @mpscholten tried again. without fiddling with nixpkgs-config.nix everythin works
    Marc Scholten
    @mpscholten
    perfect :)
    Marc Scholten
    @mpscholten
    Marc 19:28 Uhr
    IHP now has around 1500 github stars :rocket: Making us the second biggest haskell framework measured in GH stars (we moved past scotty and servant today)
    matrixbot
    @matrixbot
    sm congrats ! How many stars to catch yesod ?
    Marc Scholten
    @mpscholten
    yesod has 2300. ~800 left :) so by end of Q1 2021 we’ll be the biggest
    Andrea
    @andreatrygit
    @mpscholten in the regard of ssr components, i saw by the gist you posted a sound example of managing state, reactivity and eventing.
    Plus hsx offers naturally templating. What about styling? What about nesting components? May I ask to elaborate a todoMVC? that would be a sort of primer for the basic about components IMHO.. and finally: beside techempower, do you plan also stefan krause frontend benchmarks?
    Thanks for any reply and my best wishes!!
    Marc Scholten
    @mpscholten
    Yes, will do that once we have the first prototype of that ready. Styling and nesting is something we still need to figure out by playing with the prototype
    michaelchristopher-ui
    @michaelchristopher-ui

    I was following the guide: https://ihp.digitallyinduced.com/Guide/your-first-project.html

    and I encountered a compilation error where it said that the Text.MMark module could not be found. Does anyone here know how to solve it?

    Marc Scholten
    @mpscholten
    did you add mmark to the default.nix?
    Andrea
    @andreatrygit
    Hi again!
    How much can IHP scale Postgres?