Search SSH library

2021-03-29 Thread demotomohiro
[startProcess](https://nim-lang.org/docs/osproc.html#startProcess,string,string,openArray%5Bstring%5D,StringTableRef,set%5BProcessOption%5D) in my example code just executes ssh client installed ony your system. You can use your private key and passphrase in the same way as you run ssh command.

Nim cimpiling to Misra C?

2021-03-29 Thread shirleyquirk
> Rule 5.1 (required): Identifiers (internal and external) shall not rely on > the significance of more than 31 characters. nim generated code would be unlikely to pass that one...

Inline print a sequence or strip '"'

2021-03-29 Thread juancarlospaco
`.join` ?.

Inline print a sequence or strip '"'

2021-03-29 Thread matthesoundman
Nice! It worked perfectly. Thank you. I am still learning a lot about the language.

Inline print a sequence or strip '"'

2021-03-29 Thread matthesoundman
Hello, I am trying to create a single string line from a large sequence. Is there a simple way to inline the sequence for writing to a file that doesn't include the seq structure and double quotes? I tried: let someHeaderRow = fmt"SN,ID,{someSeq}" writeLine(myFile, someHeader

Nim cimpiling to Misra C?

2021-03-29 Thread cantanima
> Taken together with Adams’ observation that all modifications have a non-zero > probability of introducing a fault [1], this makes it possible that > [b]adherence to the MISRA standard as a whole would have made the software > less reliable.[/b] Wow.

Nim cimpiling to Misra C?

2021-03-29 Thread Taufeeqmowzer01
Thanks for the link @araq. @Dizer yes, I am aware that it is a standard, i just thought if it could compile to c and then automagically optimize itself to Misra C compliant code then it could expell lots of error prone code..but if there is not really much benefit in practice then its not worth

Nim cimpiling to Misra C?

2021-03-29 Thread DIzer
So far as i know the Misra C is not dialect C or its standart. It is just the bunch of the rules about safe C codinig (for programmers). Of course Nim translator makes C version of Nim program. But it is **not for human** it is for C compiler. C compiler generates low level platform dependent co

Nim cimpiling to Misra C?

2021-03-29 Thread Araq
Misra C is irrelevant for compiler generated code. And Misra C is pretty terrible anyway,

Mysterious problem with shift left, uint64 and compile-time constants

2021-03-29 Thread tord
You are saying this is a bug in Nim? I was sure it was just me who had made some stupid newbie mistake. OK, I'll report on github. Thank you.

Mysterious problem with shift left, uint64 and compile-time constants

2021-03-29 Thread Araq
Please report bugs on github.

Nim cimpiling to Misra C?

2021-03-29 Thread Taufeeqmowzer01
Hi, I'm new here...I'm a senior medstudent dabbling into programming. I have interests in TypeScript, Elixir and Nim (to cover different needs/my interests/paradigms/use cases etc.). I was looking for a hard real-time language to have under my belt and many consider me going the Rust route sayi

Mysterious problem with shift left, uint64 and compile-time constants

2021-03-29 Thread tord
I have a bug I can't figure out. After some experimentation, I have been able to simplify it to this minimal program: type T = distinct uint64 func f(x: T): T = T(uint64(x) shl 63) func `==`(x, y: T): bool {.borrow.} const x = T(1'u64) y =

Emacs fans tell me: What autocomplete and symbol look-up package are you using?

2021-03-29 Thread zetashift
I used the doom-emacs package with `lsp`: however I still had some issues here and there but for the most part it was close to the VSCode experience. Before that I tried looking at some configs, they might help you:

Error: unknown substition variable: attype

2021-03-29 Thread shirleyquirk
that nimble-#8f7af86 is actually a dependency of choosenim, it's a very specific version of nimble that choosenim installs.

quit() - inconsistent behavior - osx terminal vs visual studio

2021-03-29 Thread Araq
VS Code IDE might use `nim c -r` instead. Which you can easily do in the terminal too, replicating the behavior.

Search SSH library

2021-03-29 Thread yglukhov
IIRC my asyncssh lib should support the key+password auth. Not sure about other libs. Use `proc newSSHSession*(host: string, port: Port, username, pubKeyFile, privKeyFile: string, passphrase: string = ""): Future[SSHSession]`

Search SSH library

2021-03-29 Thread dearikomaru
thanks dude, Sorry to reply now. but how to connect using private key and passphrase too?

Search SSH library

2021-03-29 Thread dearikomaru
thanks i will try it. but got another issue, the connection need private key and passphrase.

Search SSH library

2021-03-29 Thread dearikomaru
thanks alot, yess i need it too

Why memory leaks with ARC/ORC on platform game?

2021-03-29 Thread Yardanico
There's a workaround to make global with ARC work more-or-less like it does with refc: proc test2 = var greeting {.global.}: string # from system once: greeting = "hi" greeting &= "hi" echo greeting test2() # hihi test2() # hihihi

Emacs fans tell me: What autocomplete and symbol look-up package are you using?

2021-03-29 Thread halloleo
I use `nim-mode` in Emacs for my Nim development and I would like o use autocomplete, symbol lookup and maybe even refactoring! I tried `nimsuggest`, but didn't get it working yet. Before I try harder, I wanted to ask: What do people use for Nim development in Emacs? Is there an alternative to