Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Nim] Improve code, Code Style, More Nim way #1743

Merged
merged 1 commit into from Sep 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 8 additions & 11 deletions nim/jester/server_nim_jester.nim
@@ -1,17 +1,14 @@
import jester, asyncdispatch
import jester

settings:
port = Port(3000)
port = Port(3000)

routes:
get "/":
resp ""
get "/":
resp ""

get "/user/@id":
resp @"id"

post "/user":
resp ""

runForever()
get "/user/@id":
resp @"id"

post "/user":
resp ""
12 changes: 12 additions & 0 deletions nim/jester/server_nim_jester.nim.cfg
@@ -0,0 +1,12 @@
-d:danger
-d:noSignalHandler
--gc:markAndSweep
--listFullPaths:off
--excessiveStackTrace:off
--passL:"-s"
--passC:"-fno-ident"
--passC:"-flto"
--passC:"-ffast-math"
--passC:"-march=native"
--passC:"-mtune=native"
--passC:"-fsingle-precision-constant"