!EoyccMaVGwdqyfKMAL:matrix.org

Nim Web Development

3118 Members
A channel to talk about web development with Nim.14 Servers

Load older messages


SenderMessageTime
25 Nov 2022
@raphi:tapesoftware.net@raphi:tapesoftware.net changed their profile picture.19:42:05
@_discord_1045180415394201662:t2bot.iokarspep joined the room.20:52:19
@_discord_243409969351884802:t2bot.ioCorazone joined the room.22:43:52
26 Nov 2022
@_discord_765424011416436746:t2bot.ioKarspep joined the room.00:00:54
@_discord_960187709719212122:t2bot.ioAlbiIsSomething joined the room.00:18:01
@gbbz:matrix.orggbbz joined the room.03:06:06
@_discord_409777786530693130:t2bot.iosanao Hello.
I have a question about nim-markdown. Is it possible to get date, title and text respectively from markdown using this library?
03:51:17
@_discord_409777786530693130:t2bot.iosanao * Hello.
I have a question about nim-markdown. Is it possible to get date, title and content respectively from markdown using this library?
03:51:32
@_discord_409777786530693130:t2bot.iosanao * Hello.
I have a question about nim-markdown. Is it possible to get date, title and content respectively from markdown using this library?
If so, please let me know how.
03:52:20
@ciznot:halogen.cityciznot
In reply to @_discord_409777786530693130:t2bot.io
Hello.
I have a question about nim-markdown. Is it possible to get date, title and content respectively from markdown using this library?
If so, please let me know how.
If you are referring to pandoc markdown specifically the simplest approach is to use '%', e.g.

% Document Title

# Header 1

content

## Header 2

## Header 2
05:05:06
@scarfacelol:matrix.orgscarfacelol joined the room.08:10:24
@_discord_180601887916163073:t2bot.ioPhil Got to love the HTML spec sometimes, as much of a course as it can be 08:52:46
@_discord_180601887916163073:t2bot.ioPhil Form validation literally for free with no effort needed on my part, just by adding the "required" attribute 08:53:01
@_discord_180601887916163073:t2bot.ioPhil (Currently adding required field validation to snorlogue) 08:53:14
@arkanoid:matrix.orgarkanoidWould you please share your technology stack (languages + packages) that you use to build full stack web services (frontend + backend)? I see many possible combinations with Nim alone, but I was curious about your "winning" stack14:00:58
@_discord_180601887916163073:t2bot.ioPhil Mine?
Check out my nimstoryfont repo on GitHub, the readme should contain it all, and iirc I have a docs folder or sth with another readme that describes the general structure ( basically just repository pattern with a serialisation step explicitly separated out into it's own module)
14:03:38
@arkanoid:matrix.orgarkanoid It was a general question for all participants. Thanks Phil: I'm googling your project name 14:05:04
@arkanoid:matrix.orgarkanoidWhy you need a connection pool for sqlite?14:08:10
@_discord_180601887916163073:t2bot.ioPhil Because the thought of instantiating a connection when it's not really necessary didn't sit right me and it's generally fairly common practice. Though it's no longer needed because norm now includes tooling to build your own so tiny pool is now unnecessary 14:09:36
@raphi:tapesoftware.net@raphi:tapesoftware.net left the room.14:16:12
@arkanoid:matrix.orgarkanoid
In reply to @_discord_180601887916163073:t2bot.io
Because the thought of instantiating a connection when it's not really necessary didn't sit right me and it's generally fairly common practice. Though it's no longer needed because norm now includes tooling to build your own so tiny pool is now unnecessary
What's the point? A pool would make sense only for reading operations, but not writing (concurrent writing on sqlite is a no go)
14:20:43
@_discord_180601887916163073:t2bot.ioPhil Correct, given the nature of the application, that being a wiki, you're very much reading significantly more than you're writing 14:24:59
@arkanoid:matrix.orgarkanoidMaybe an async pool?14:26:52
@_discord_180601887916163073:t2bot.ioPhil Not that it's technically necessary for my usecase. Some amount of what I built was just to see if I can do it on a technical level to learn the language 14:26:59
@_discord_180601887916163073:t2bot.ioPhil Hm? What would that point be? The pool is just about establishing the connections ahead of time and accessing them in a multithreaded environment ( when multiple controller procs are executing in parallel), just doing a locked seq pretty much does the job there 14:28:57
@_discord_472459996068839424:t2bot.iohotdog#3889 concurrent write on sqlite is possible https://www.sqlite.org/cgi/src/doc/begin-concurrent/doc/begin_concurrent.md 15:44:59
@_discord_472459996068839424:t2bot.iohotdog#3889 https://www.sqlite.org/wal.html 15:45:11
@_discord_180601887916163073:t2bot.ioPhil It truly is one of those things that just keeps on giving imo 15:48:54
@_discord_869553210975748116:t2bot.iofvfeeh joined the room.17:30:03
@_discord_483386797276004382:t2bot.ioAfonso Lima joined the room.18:40:05

There are no newer messages yet.


Back to Room List