Cross platform HTTP server: a fork version of httpbeast which adds windows support

2020-08-08 Thread xflywind
This project is based on Dom96's perfect work on [httpbeast](https://github.com/dom96/httpbeast) and adds windows support(based on `wepoll` namely IOCP). It is also used by [prologue](https://github.com/planety/prologue). Project in: [https://github.com/xflywind/httpx](https://github.com/xflyw

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread doongjohn
@hugogranstrom @Cnerd Thanks! I'll try different colors! @moigagoo yup I need to make it reactive :)

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread moigagoo
You should give the mobile version some love. It looks generally nice but there are overlapping and padding issues.

Syntax for copy instance of object and update some attribute

2020-08-08 Thread leorize
Pending support for `with` and `dup`: [https://github.com/nim-lang/Nim/pull/14484](https://github.com/nim-lang/Nim/pull/14484)

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread MasonMac
I think it would look better if it kept to the current colour pallete.

How to make a pragma?

2020-08-08 Thread Salient
@snej Thanks brother

HTML template engine that keeps code/templates separate?

2020-08-08 Thread digitalcraftsman
I guess [Moustachu](https://github.com/fenekku/moustachu), an implementation of the Mustache templating system, looks quite feature complete. With the latest commit on February 8th it seems to be actively maintained.

HTML template engine that keeps code/templates separate?

2020-08-08 Thread snej
Iโ€™m looking for an HTML template engine, ideally one that implements a widely-used syntax like Liquid or Mustache or Golang Templates so I can easily use/adapt existing themes for Hugo/Jekyll/etc. The most commonly used one seems to be Karax, but it mixes templates with code, and I prefer to ke

How to make a pragma?

2020-08-08 Thread snej
Define a macro, then use the macro name as a pragma. The proc body will be passed to the macro.

How to make a pragma?

2020-08-08 Thread Salient
Hey guys, I can't find documentation anywhere for this. Nothing clear anyways. How can I make my own pragmas? I'm trying to port my favorite python module into Nim and my goal is to keep the syntax as close as possible. Basically, I'm trying to create a decorator. What's the best way of accomp

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread Cnerd
@doongjohn it's really cool๐Ÿ‘๐Ÿพ๐Ÿ‘๐Ÿพ but I think it will look nicer with darker colors๐Ÿ˜‰

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread hugogranstrom
It's great that you find that you are learning new stuff! :D I prefer the darker colors that are on the official webpage but I agree with @xigoi that the pragma-styled headers look great and was a smart idea ๐Ÿ˜„๐Ÿ‘

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread doongjohn
Thanks for the feedback! I've changed it to be left align.

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread moigagoo
Looks nice! One general advice is not to use central alignment for paragraphs, use left alignment.

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread doongjohn
Thanks! I think pragma syntax is very unique to nim so I tried to use it.

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread xigoi
Looks nice! I like the pragma titles.

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread doongjohn
[https://doongjohn.github.io/nimfrontpage-fun](https://doongjohn.github.io/nimfrontpage-fun)/ I'm not a web designer and I made it just for fun :) (COVID is actually making me learn something lol) Still WIP (no buttons work) What do you think?

Nim beginner series for absolute beginners

2020-08-08 Thread Cnerd
I am really sorry about that couldn't get a good mic for the tutorial

Nim beginner series for absolute beginners

2020-08-08 Thread Cnerd
But you can use the site instead

Prologue: a web framework in Nim

2020-08-08 Thread xflywind
Recently I'm working on the api docs for `Prologue`. Now I release a new version for these changes. # API docs * core API: [https://planety.github.io/prologue/coreapi/theindex.html](https://planety.github.io/prologue/coreapi/theindex.html) * plugin API: [https://planety.github.io/prologue

Nim beginner series for absolute beginners

2020-08-08 Thread jasonfi
You need to fix the audio, the background noise is just too distracting.

Nim beginner series for absolute beginners

2020-08-08 Thread Cnerd
Thanks for the feedback. When I say absolute beginner I mean someone who is new to coding in general and one who finds jumping directly into programming concepts such as strings, ints, types etc difficult or incomprehensible or people who are new to coding in general but have little experience i

Nim beginner series for absolute beginners

2020-08-08 Thread DIzer
What do you mean by saying "absolute beginner" \- a novice in algoritmization, general programming skills , the nim language, or to one who is lacking basic computer skills? I ask you because i can not understand whom it needs for. I browsed through every video, yet it would be nice if you provi

call-by-value Y combinator

2020-08-08 Thread cblake
We could probably use something similar to get recursive (closure) iterators, perhaps with less nice syntax than ideal. I was just discussing such an approach with @sschwarzer in private communications, but ran into "type trouble". The essence of the Y/Z combinator is, of course, to build "body

Nim beginner series for absolute beginners

2020-08-08 Thread Cnerd
Hello guy made a beginner series for Nim you can check it out here [https://www.youtube.com/playlist?list=PLUG1iyu04pAmudSymMOb-cfB8AoK5UHpi](https://www.youtube.com/playlist?list=PLUG1iyu04pAmudSymMOb-cfB8AoK5UHpi) now I won't pretend to be a great YouTuber (video audio quality is poor) and I k

call-by-value Y combinator

2020-08-08 Thread Araq
Nice!