And I don't compile a GHCJS version, because that would require splitting frontend and backend. Right now, they all run in the same process. This is a neat thing about jsaddle bridge; you can do anything including IO from your reflex "frontend" app.
The bridge is also the reason why the web app might feel laggy (because everything, including frontend logic, runs on the server - with the bridge communicating all DOM updates to the browser)
I was buying a laptop before joining my first Haskell job (Obsidian Systems); and when asked for advice, the only thing they told me was to get at least 1TB, because NixOS (which nearly everybody at the company uses) uses a lot of diskspace.
In theory nix should have taken care of it; if it works on NixOS, why does it not work on Arch? Or is nixpkgs doing some conditional stuff, depending on linux distro? No idea...
This is a continuation of @mageshb's work fetching headers from XHR responses (originally PR #76)
There is a new field in XhrRequestConfig called _xhrRequestConfig_responseHeaders that allows u...
@Bolt I have no idea. We don't have to touch reflex-platform (ka doedsn't use it); just nixpkgs. So maybe we need to see how reflex-dom is packaged up in nixpkgs, and change there. You can check with @maralorn as he might have some ideas.
@Kit Langton @TheMatten @Bolt I've invited you all to ka GitHub repo.
Thanks @Sridhar Ratnakumar ! I was just poking around the Neuron repo :)
Is there any "homework" you recommend doing?
Thanks!
@Bolt Install Nix, and follow the README to get the app running on ./guide ... then on your own notes.
With ka open by side, edit the notes using an editor (vscode preferred; using guide/.vscode configuration)
Basically run these two commands:
(Assuming you are on Linux; otherwise, see web app section in README to replace the second command)
(Install the recommended extensions if you open with vscode; you'll get nice auto complete for links)
Invitation returns 404 for me :sweat_smile:
Same for me but I realised I wasn't logged in in GitHub. Then everything worked out fine!
https://github.com/SridCircle/ka
Building with Nix, I can see it's quite heavy, almost 10Gb
Is that supposed?
@Bolt What's 10Gb?
10Gigabytes of disk memory
Because Nix installs every dependency
If it is the nix store, see which derivations take the most space by running:
I'm curious if anybody is able to run the Gtk+ app.
Also I'm getting
Error : Unexpected Duplicate. syncCallbacks=True nBatch=7 nExpected=9
When I run the webapp
Try refreshing? Does the web app otherwise work?
The UI freezes when I refresh
Restart server. Close tab; open tab.
(It uses jsaddle-warp, which is like unreliable 5% of the times; which is why I use the Gtk+ version)
And I don't compile a GHCJS version, because that would require splitting frontend and backend. Right now, they all run in the same process. This is a neat thing about jsaddle bridge; you can do anything including IO from your reflex "frontend" app.
image.png
I refreshed and the UI was responsive but as soon I clicked something it froze
The bridge is also the reason why the web app might feel laggy (because everything, including frontend logic, runs on the server - with the bridge communicating all DOM updates to the browser)
Which browser?
Might be this bug:
Just use Chrome :grinning_face_with_smiling_eyes:
Or the Gtk+ version
Oh I see! Yeah I'm using firefox!
@Bolt Did the Gtk+ version compile and run?
I'll try the GTK version just need to delete the nix build eheh
no space left on mymachine
I was buying a laptop before joining my first Haskell job (Obsidian Systems); and when asked for advice, the only thing they told me was to get at least 1TB, because NixOS (which nearly everybody at the company uses) uses a lot of diskspace.
Yeah I'm planning to do that as well :stuck_out_tongue:
Got the GTK app working ! But it's a bit ugly :stuck_out_tongue:
image.png
Wonder if the problem is in my end
Oh yea, that looks weird. Looks like semantic UI CSS is not loading?
Expected layout: https://www.srid.ca/ka.html
@Bolt Is this on macOS?
Arch
Can you send the full app screenshot? Also logs.
src/Ka/View.hs line 27; that's where semantic UI css is getting included.
Okay I have an idea.
Right click inside the app, and click "Inspect Element". This will open a DOM inspector
image.png
image.png
I have the DOM inspector opened
In the Network tab, select "All" and you should see the status of
semantic.min.css
On my end it looks like this:
image.png
There's an error loading that resource!
Why is it failing? can you fix that?
Let me see
I found the source of the error
Failed to load resource: TLS/SSL support not available; install glib-networking
maybe some dependency issue
Output of
ldd $(nix-build)/bin/ka
?In theory nix should have taken care of it; if it works on NixOS, why does it not work on Arch? Or is nixpkgs doing some conditional stuff, depending on linux distro? No idea...
ldd.txt
Doesn't seem to to be there
Is
glib-networking
listed on the dependencies?I do have it installed on my system tho
is glib-networking running as a service (systemd)?
I don't think so, probably
it seems to be a library, and a service. cf. https://github.com/NixOS/nixpkgs/blob/7f6dda737a11165c71128f46c631b3cd4dfadbda/nixos/modules/services/desktops/gnome3/glib-networking.nix#L17
Is glib-networking on the input build of the derivation?
@Bolt Looks like you hit this bug: https://github.com/reflex-frp/reflex-dom/pull/80
Weird
Is that a hard thing to do?
@Bolt I have no idea. We don't have to touch reflex-platform (ka doedsn't use it); just nixpkgs. So maybe we need to see how reflex-dom is packaged up in nixpkgs, and change there. You can check with @maralorn as he might have some ideas.