Massive Funding Coming To Nim

2020-10-04 Thread Yardanico
Honestly that video is very bad, that person indeed doesn't know that they're talking about, the whole video is centered about "nim bad because not popular, so don't learn it".

Looking for collaborators!

2020-10-04 Thread Yardanico
Meh, I wouldn't call banning JITs a "security feature", iOS itself uses JIT in the browser for JS (because otherwise it'd be extremely slow), but doesn't allow others to do the same, so all browsers have to be based on Safari.

Nim Honeypot Project

2020-10-04 Thread xendi
What would be extra fun: Honeypot is able to parse security CVE and produce honeypot which tricks the attacker into believing they have successfully exploited the system. This is probably easier than it sounds because there's typically a very limited number of outcomes to a given collection of e

Wrapping synchronous code into asynchronous call

2020-10-04 Thread xendi
Maybe there's a helper for reading bytes as you propose but don't forget, there must always be an event loop somewhere beneath, right?

Massive Funding Coming To Nim

2020-10-04 Thread xendi
I love this language. I certainly don't need to explain why to any of you. In my job, I mostly use Python. Not because it has any fundamental advantage as a language; it's usually because I have some set of requirements that there happens to already be a pypi package for that's not in nimble yet

Wrapping synchronous code into asynchronous call

2020-10-04 Thread snej
> The only thing you can do is spawn a new thread and then use a rather > inefficient busy loop to poll its completion. There aren’t any async-friendly ways to wait/notify? Could you open a pipe, create an asyncsocket on it, and then read a byte from it?

Looking for collaborators!

2020-10-04 Thread snej
> But if you want something more flexible (and fast at the long run) , then you > should go for a JIT VM JITs are fast, but not all platforms support them. iOS doesn’t, because for security reasons, processes are not allowed to make memory pages executable. Not sure about Android; it’s usually

Looking for collaborators!

2020-10-04 Thread nocturn9x
Btw I'm so glad this is a language specific issue rather than a broken logic, because this issue had kept me stuck for so long (way more than the average issues I've faced which I usually sorted out in max 3 days) that I was about to reconsider my life choices as a programmer🤣

Looking for collaborators!

2020-10-04 Thread nocturn9x
Dude, I've literally tried to fix this for weeks and you found the solution. Where can I send all the money I have so that I can express my appreciation?! But seriously, thanks ALOT for your time and help, now I can finally keep going!

Wrapping synchronous code into asynchronous call

2020-10-04 Thread mrhdias
This is a test to simulate the use of a synchronous function in an asynchronous environment! What should I do to run the synchronous sleep function at the same time as the asynchronous sleep function without blocking?

Wrapping synchronous code into asynchronous call

2020-10-04 Thread dom96
I mean, did you check that `testAsync` definitely doesn't get called? Like did you add an echo at the beginning of it? Anyway, I bet the problem you're seeing is because you're blocking the thread in `test` by calling `sleep`, that will block all of async. Never call `sleep` in an async proc, i

Wrapping synchronous code into asynchronous call

2020-10-04 Thread mrhdias
Thanks @dom96 for the reply. I wrote this code to test your solution: import asyncdispatch import os import threadpool proc testSync(): bool = var count = 0 while true: sleep(1000) echo "wakeup sync... ", $count count += 1

Nim Honeypot Project

2020-10-04 Thread blmvxer
I've been working on an idea of a Telnet honeypot in Nim, When I came up with an idea of having a Modular Suite of Honeypots with Multiple environment templates for each service. **Nim Honeypot Project Board** <> **Initial telnet honeypot** <

Wrapping synchronous code into asynchronous call

2020-10-04 Thread dom96
The only thing you can do is spawn a new thread and then use a rather inefficient busy loop to poll its completion. This is how I did stdin reading in Chapter 3 of Nim in Action, you can use it as an example:

Wrapping synchronous code into asynchronous call

2020-10-04 Thread mrhdias
My question is how to make [db_mysql](https://nim-lang.org/docs/db_mysql.html) module work asynchronously? I know, that there are other mysql implementations, but this module is part of the standard library and is simple to use. But, there Is any way to call any synchronous function asynchronou

Looking for collaborators!

2020-10-04 Thread shirleyquirk
i found your function call problem: you have your framestack defined as a ref seq[CallFrame], where CallFrame is an object. ref seqs are not usually what one wants, I think you were trying to make the local `var frame` a reference to a CallFrame, but when you assign it var frame =

Looking for collaborators!

2020-10-04 Thread nocturn9x
Didn't know that, thanks!

Looking for collaborators!

2020-10-04 Thread shirleyquirk
if you implemented =destroy for your objects you would be able to leverage all the work that has gone into arc

Pointer Arithmetic and constructs like cast[var int](p) += sizeof(a[0])

2020-10-04 Thread shirleyquirk
But not in the spec, more a peek behind the curtain, and as your other response this morning pointed out, not for the c++ backend, which uses c++ references for `var` instead of pointers

80-bit (long double) support?

2020-10-04 Thread shirleyquirk
Oof, I knew that one was going to be brittle. You can't dereference a C++ reference, it's not a pointer

Gintro not compile package ??

2020-10-04 Thread Stefan_Salewski
The issue is indeed a single function from gst module, see In gst 1.16 it was a plain function, now it is a constructor but one with an out parameter. I will see if I can get some advice from E. Bassi.

Looking for collaborators!

2020-10-04 Thread nocturn9x
Ok, so, as requested by some I'm taking the time to document my current issue(s) with my implementation of the bytecode VM. To reproduce the issue, you may want to `git clone https://github.com/nocturn9x/japl`, then `cd japl/nim` and run `nim compile main`. But beware! Initially this project use

nimqml's abstractitemmodel example is unclear to me

2020-10-04 Thread mantielero
I just posted [this question](https://github.com/filcuc/nimqml/issues/26) in nimqml's github. Just in case that somebody here is able to answer it: * * * I am trying to understand the [abstractitemmodel](https://github.com/filcuc/nimqml/blob/5c42890e5b14b7d84a2345b060d1b54bfb7aed1b/examples/abs

Define and call static proc of an object

2020-10-04 Thread chaemon
@shirleyquirk Yeah! I know that static proc without generics is barely possible. I want to try such kind of modification with generics like the following. For now, static[auto] (although which is not using generics) is temporal solution. This is also dragon... nim type

Pointer Arithmetic and constructs like cast[var int](p) += sizeof(a[0])

2020-10-04 Thread cdunn2001
Interesting. var s = @[1, 2, 3, 4, 5] var p = addr s[0] echo p[] # 1 echo type(p) echo type((addr p)[]) echo type(cast[ptr int](addr p)[]) cast[var int](addr p) += sizeof(s[0]) echo p[] cast[ptr int](addr p)[] += sizeof(s[0]) echo p[]

80-bit (long double) support?

2020-10-04 Thread cdunn2001
When I compile with C++ instead of C backend: /usercode/nimcache/@min.nim.cpp: In function 'void coloneq___7zlIf7POTZHxgRJdjlbnawin(long double&, NF)': /usercode/nimcache/@min.nim.cpp:103:3: error: invalid type argument of unary '*' (have 'long double') *a=b; ^