platonic
platonic | vscode-nim | |
---|---|---|
1 | 5 | |
6 | 179 | |
- | - | |
7.1 | 4.1 | |
12 months ago | 2 months ago | |
Nim | Nim | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
platonic
-
NIR: Nim Intermediate Representation
> Ya I don't think this is a good definition of dependent type - the prototypical example of a dependent type is a k-length vector.
Yah that's why I qualified my statement as dependent type like setup as I don't know a good definition of dependent types which I really grok and I've only briefly dabbled in it. It'd be awesome if you could point out a good resource showing a clear example / simple proof.
Well I started working on statically typed vector concepts [1]. The compiler can't do `proc concat[N,M: static int](v1: Vector[N], v2: Vector[M}): Vector[N+M]` and it fails. It might be able to be implemented via a macro like `proc concat(v1: Vector[N], v2: Vector[M}): typeFromSumOf(N,M)`, but I haven't tried yet.
Also just using static ints would require specific values at some point to work I think. Whereas you'd really want "induction" of some sort. Maybe a SAT solver would be required at that point? There's DrNim [2] which does tie Z3 but it's sorta dormant.
> Um yes this is literally what I was asking with respect to top ⊤.
Ah, I didn't know what you meant by top T.
> ya the negation is interesting - I wonder how it's implemented.
Nim's VM runs from Nim AST, so probably running it as a VM expression.
1: https://github.com/elcritch/platonic
vscode-nim
-
NIR: Nim Intermediate Representation
You may fare better hooking VSCode to nimlangserver:
https://github.com/saem/vscode-nim#nim-lanugage-server-integ...
-
Nimlangserver Announcement
nimlangserver is an implementation of Language Server Protocol with the goal to make nim IDE experience more mature. The main difference between nimlangserver and the existing nimlsp is that nimlangserver runs nimsuggest in a separate process and that nimlangserver is using a newly introduced version of nimsuggest v3(see bellow). nimlangserver is currently integrated in VScode via vscode-nim and in Emacs via lsp-mode but adding integraion with other editors should be trivial.
-
what nim needs to grow in popularity
admittedly the editor support is far away from perfect, but that particular issue just sounds like https://github.com/saem/vscode-nim/issues/80
-
Nim Version 1.6 Released
To all those wondering about IDE support , the actively maintained VSCode extension is :
https://github.com/saem/vscode-nim
The default extension suggested by VSCode which have over 43k downloads in un-maintained for Eons and it won't work.
Here is the link : https://marketplace.visualstudio.com/items?itemName=nimsaem....
@dom96 can you pin this somewhere on the forum or website ?
-
If you highlight proc definition with bold Nim code is much easier to read
UPDATE: improved highlighting rules you would get this code highligting more details https://github.com/saem/vscode-nim/issues/49
What are some alternatives?
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
cps - Continuation-Passing Style for Nim 🔗
karax - Karax. Single page applications for Nim.
langserver - The Nim language server implementation (based on nimsuggest)
INim - Interactive Nim Shell / REPL / Playground
nimlsp - Language Server Protocol implementation for Nim
jester - A sinatra-like web framework for Nim.
coc-ccls - CCLS (C/C++) extension for coc.nvim
norm - A Nim ORM for SQLite and Postgres
nimja - typed and compiled template engine inspired by jinja2, twig and onionhammer/nim-templates for Nim.