Skip to content

Commit f6d77ba

Browse files
committed
index(about): new, append from nimpylib/pylib why-nimpylib
1 parent ee7b238 commit f6d77ba

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

content/posts/why-nimpylib.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
+++
2+
date = '2025-02-14T20:01:12+08:00'
3+
draft = false
4+
title = 'Why Nimpylib'
5+
+++
6+
7+
<!--Copied from nimpylib/pylib README.md 34b29a95892c5652ade1794ff92b7363e5830d59
8+
but update link of mustRewriteExtern
9+
-->
10+
11+
It helps you to:
12+
- use much Python-like out-of-box API in Nim:
13+
- with no need of any Python dependency (neither dynamic library nor binary).
14+
- even handy for ones who don't use much Python but want more functions in Nim
15+
- translate your Python program to Nim:
16+
- gaining a right-away speed boot of even 700x
17+
- no worry about binary distribution or packaging, just "compile once, distribute everywhere"
18+
- rid of many annoying runtime-errors (which are turned to compile-time error)
19+
- gain a better view into different behaviors between Python and Nim:
20+
- `dynamically-typed` vs `statically-typed`
21+
- unconvertible syntax from Python to Nim, e.g.
22+
[`end` keyword](https://github.com/nimpylib/pylib/blob/master/doc/mustRewriteExtern/endKeyword.md),
23+
[`not in` syntax](https://github.com/nimpylib/pylib/blob/master/doc/mustRewriteExtern/not-in.md)

hugo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ theme = 'ananke'
2626

2727
body_classes = "avenir bg-light-gray"
2828

29+
recent_copy = "About" # default: i18n "Recent Posts"
30+
# We use it as a place for "about" instead of "Posts"
31+
2932
# allow inline html in Markdown
3033
[markup]
3134
[markup.goldmark]

0 commit comments

Comments
 (0)