Author Topic: The adarq.org forum rewrite thread  (Read 1707 times)

0 Members and 1 Guest are viewing this topic.

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
The adarq.org forum rewrite thread
« on: December 05, 2016, 02:22:31 pm »
0
I should have done this a long time ago.. just going to journal development of the new forum.

beware, it's a long slow process.  :ninja:

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #1 on: December 05, 2016, 11:38:26 pm »
0
so.. this project has taken a long time.

Just a quick overview:



notice the inactivity on the left and right of that "graph".. The inactivity on the left is me being burned out from work, which I had quit in July of 2015.

I started the re-write of our forum on April 2016. I went HARD from April to June, developing the forum in two languages:
- backend: haskell
- frontend: purescript

In June, I realized I could no longer use Purescript because the compiler was too slow and they didn't really seem to care about addressing any of those issues.. So I was stuck. Since GHCJS allows me to share haskell code on the frontend and backend, I decided to go with GHCJS for the frontend. This was a major risk because full stack haskell web development is VERY young and much less stable than Purescript.... Though, the compiler is FAST and it can deal with my enormous code base.

So, everything was going absolutely great with this new style of development. I was crushing it from June to September.. Re-wrote much of the frontend in Haskell (GHCJS) and everything was looking up. However, in September I hit some bugs in the GHCJS compiler. I asked for help, no one helped. I just got pissed and focused on running.. Stopped working on the project entirely.

Since I want to complete this project "badly" (understatement), I started picking things back up in late November and now December. I'm "working around" the bugs in the meantime.. These are bugs in GHCJS, of which I cannot solve.. So, i've contacted the author of GHCJS (Luite) and currently he's trying to figure out what's going on. He's able to replicate the issue on his end, which means hopefully he can figure out a fix for the problem i'm experiencing.

Regardless, i'm going to continue to chip away at this project.. It's far from done.. It's actually pretty disappointing that it's not done. But I also chose some fairly "esoteric" programming languages, of which I am certainly not a master.. So it's kind of like i'm training vert, slowly trying to build up, work around injuries (bugs), and keep my eye on the major PR's down the road.

There's really a ton that needs to be done but, if these GHCJS bugs can get fixed, I could get back to coding way more rapidly and make alot more progress.. But for now i'm going to use this as an experience of "self control".. how to chip away at something when it seems so far away.. There's alot of similarities between a project like this, and a goal of reaching a 15:XX 5k or hitting my head on the rim. Even if you don't hit those incredible goals, if you keep pushing you should get somewhat close, and close would mean we'd be able to use this code & have fun in the custom forum.

Finally.. why a custom forum? Well.. it's just something i've always wanted to do.. It's obvious I like to create things.. I'd like to create our own "house" where we communicate. It's cool to use other people's software but, it would be much more rewarding to have something I could architect and add features to year after year, something I built from scratch.

Soo.. chipping away.

peace!

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #2 on: December 05, 2016, 11:40:27 pm »
0
just some random stuff I worked on today.

one cool thing i like, is the 'avatar pictures' next to the Quote line.. kinda kewl.













just going to keep posting stuff as I do it.. to motivate me more.

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #3 on: December 06, 2016, 12:26:29 am »
+1
was annoyed with the "1480998712" timestamps that I posted above.. so I fixed them! that was confusing... motivation! ;d  :derp:

eventually I want a "moment.js"-like library so I can configure it to do.. "10 seconds ago", "1 hour ago" .. or that date timestamp if it's more than a few days etc.. stuff like that.. dno.. future.


adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #4 on: December 12, 2017, 09:46:31 pm »
0
bleh.

this project has been such a failure. it hurts to even think about it. that's why i'm going to slowly chip away at it.

did a bunch of stuff today. mainly just trying to get various libraries to build etc. got alot of libraries to build.

since I can't create a "huge forum" like I wanted, due to limitations in purescript/GHC, i'm going to slim it down and make it as barebones as possible. I still have tons of old code that I don't want to re-write, so I need to try and get it ported so I can re-use it.

anyway.. my notes project proved I could get it done with the limitations i'm faced with.

the limitations are simply, as my code base grows, purescript/GHC-js fail to compile it.. so I just need to make it smaller (basically bare minimal SMF - current forum) for now, which should be possible, and get it done.

some of the screenshots in this thread are awesome :(

we should be using this by now.. with added features for progress tracking. :'( :'( :'(

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #5 on: March 24, 2019, 10:51:38 am »
+1
over the last week i've been rebooting this project.

it's really the only personal coding project I want to finish. i don't care about anything else. it'd be fun to have this forum 100% in our own code, as long as it's solid obviously.

i've been stripping it down into the bare essentials, just trying to get everything to build. all of the "cool features" i've ripped out. just going to duplicate the existing functionality of this forum and try to make that very solid, so that we can use it.

who knows yet.. still haven't gotten the site to render on my screen yet :D but i just got it to login via oauth2.

so many repos involved:

Code: [Select]
Mar 24 09:38 TODO.txt
Mar 21 22:14 ghcjs-ajax
Jul 17  2016 ghcjs-router
Mar 21 22:37 haskell-api-helpers
Jul 28  2016 haskell-api-helpers-ghcjs
Jul 29  2016 haskell-api-helpers-shared
Oct  8  2016 haskell-bbcode-parser
Aug 23  2016 haskell-bbcode-parser-reactflux
Jun 28  2016 haskell-ebyam
Jul 23  2016 haskell-either-helpers
Jul  2  2016 haskell-ifte
May 26  2016 haskell-interop-prime
Dec 12  2017 haskell-lnforum-types
Aug 24  2016 haskell-media-embed
Aug 24  2016 haskell-media-embed-reactflux
Jun 28  2016 haskell-rehtie
Jul 26  2016 haskell-web-bootstrap
Jul 21  2018 lnforum-api
Mar 16 23:41 lnforum-api-ghcjs
Mar 19 23:40 lnforum-empty
Dec 12  2017 lnforum-interop
Mar 20 00:40 lnforum-lib
Dec 12  2017 lnforum-sanitize
Jul 21  2018 lnforum-smf-migration
Dec 12  2017 lnforum-types
Mar 20 23:27 lnforum-types-gen
Jan  1  2017 lnforum-ui-cli
Mar 16 23:21 lnforum-ui-core
Mar 16 23:13 lnforum-ui-ghcjs
Mar 19 22:53 lnforum-ui-ghcjs-empty
Mar 21 22:10 lnforum-ui-reactflux
Dec 12  2017 lnforum-validate
Mar 24 10:19 lnforum-yesod
Dec 12  2017 purescript-lnforum-api
Dec 12  2017 purescript-lnforum-types
Jul 17  2016 react-flux-router
Apr 16  2016 restyle
Mar 23  2017 stm-lifted
Jul 27  2016 web-routes
Dec 12  2017 yesod-auth-oauth2

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #6 on: March 24, 2019, 10:58:16 am »
0
i've gone back to the haskell/ghcjs approach. purescript let me down. ghcjs let me down as well but, the fact that i can reuse all of my existing haskell code because it's a full stack web app, makes me want to try this again with ghcjs.

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #7 on: March 24, 2019, 08:54:48 pm »
0
forgot how cool my favicon is..


adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #8 on: March 24, 2019, 09:08:23 pm »
0
ladies and gentlemen, we have divs on the screen.


adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #9 on: March 24, 2019, 09:14:49 pm »
0
omg.




adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #10 on: March 24, 2019, 09:24:27 pm »
0
i'm so excited.

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #11 on: March 24, 2019, 09:36:09 pm »
0
reminder:

to get ghcjs to work, I had to change my "node" to /usr/local/node7/bin inside of ~/.ghcjs/*/node.

also, tricky getting -ghcjs libraries to build. need the "conditional build-depends".

stuff like that.

also, how wasn't react loaded in the previous index.html wtf? not sure how it even worked before. hah.

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 31421
  • who run it.
  • Respect: +7787
    • View Profile
    • Email
Re: The adarq.org forum rewrite thread
« Reply #12 on: March 30, 2019, 11:27:47 am »
+1
o snap. just got boards showing again.