Building Nim + Nimble on Ubuntu 22, "could not import: SSL_get_peer_certificate"

2022-05-24 Thread jwatson-CO-edu
Thank you, @thindil; the Reddit path worked. For completeness: 1. `wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb` 2. `sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb` 3. Install normally. `choosenim` is by no means required; I just re

Building Nim + Nimble on Ubuntu 22, "could not import: SSL_get_peer_certificate"

2022-05-22 Thread jwatson-CO-edu
Hello, Following the instructions on , I compiled and installed Nim 1.6.6 in Ubuntu 22.04 Jammy on an AMD64 machine. All seemed well, but when I run `nimble --version` I get the following error: `could not import: SSL_get_peer_certificate` `nim --version

Confusion about proc forward declarations

2022-04-15 Thread jwatson-CO-edu
Ah, I see now that the supposed "working example" was a red herring. When I comment out the `meaning` forward declaration, then the compiler complains about `test_proc`. I had assumed that the declarations would be checked in the order they were written and also that they would both be checked.

Confusion about proc forward declarations

2022-04-15 Thread jwatson-CO-edu
The following `proc` forward declaration example compiles: (Taken from ) proc test_proc[T, U](arg1: T, arg2: U): float # All good! Run The following does not: proc meaning[T]( s_expr: T ): Atom # Error: implem

xml-rpc client lib?

2022-04-15 Thread jwatson-CO-edu
I see, I think `std/`{`asynchttpserver`, `httpclient`, `xmlparser`} will be my starting place(s) as well. If I produce anything substantive, I will link to it in this thread.

xml-rpc client lib?

2022-04-14 Thread jwatson-CO-edu
Yes, my parsing needs are very limited as well. ~ Then I guess my next question is: What libs are you using for client/server?

server-client webframework

2022-04-13 Thread jwatson-CO-edu
@nepeckman , can you give us some examples of where you have used this library?

xml-rpc client lib?

2022-04-13 Thread jwatson-CO-edu
@stedi Have you begun this effort? Will you also need a server? I would like a faster XML-RPC server to support an academic project. I have small slivers of time to give; as this would speed up my work but is not required for it.

Nimbotics

2022-04-13 Thread jwatson-CO-edu
@inventormatt , where did you land on a native implementation of XML-RPC? I did not find a reference to it in your repo, if I'm not mistaken. I need a very small XML-RPC server to connect a Jupyter Notebook (Python) to a UR5 robot (specialized protocol).

Creation of Variant Types with Table Members

2022-04-10 Thread jwatson-CO-edu
Even better! Thank you for the efficiency edit, @ynfle ! proc empty_function*( funcName: string ): Atom = # Return a Function in Name Only result = Atom( kind: FUNC ) result.name = funcName Run

Creation of Variant Types with Table Members

2022-04-10 Thread jwatson-CO-edu
Note for anyone that needs it, since `Atom` is a `ref object`, the dereference brackets are unnecessary: proc empty_function*( funcName: string ): Atom = # Return a Function in Name Only new(result) result = Atom( kind: FUNC ) result.name = funcName

Creation of Variant Types with Table Members

2022-04-09 Thread jwatson-CO-edu
Your answer is extremely helpful. It was not clear to me from reading the tutorials and docs that instantiating a type object with the fields only partially defined was even possible! Thank you for your insight and patience.

Creation of Variant Types with Table Members

2022-04-08 Thread jwatson-CO-edu
I have two Type definitions that seem similar to me, but the compiler limits how I can create them: ### Example 1: type Env* = ref object parent:Env # --- Smart pointer to the environment that contains this one freeVars: seq[Atom] #