Re: asyncnet and reading from multiple socks

2019-08-23 Thread blmvxer
Issue I'm seeming to have is timeout never occurs upon false connections. the main point is to grab the ssh version. import asyncnet, asyncdispatch, strutils, random var serVer: string port = "22" output = "" proc genAddr(): string = randomi

Re: asyncnet and reading from multiple socks

2019-08-23 Thread blmvxer
Appreciate your response, I'll try to implement this and see if I can get a working sample to show.

Re: asyncnet and reading from multiple socks

2019-08-23 Thread treeform
[https://github.com/treeform/ws/blob/master/tests/sender_3.nim](https://github.com/treeform/ws/blob/master/tests/sender_3.nim) import ws, asyncdispatch, asynchttpserver, httpclient # Create three sockets and read from each of them asynchronously var numOpenWs = 0

Re: Marvin Minsky frame model /extended with ordered storage/

2019-08-23 Thread mratsim
IMO, those links are too theoretical and you most probably need domain knowledge and actual use cases to know the best data structures to represent Frames. Looking around you can probably re-use OO techniques though: [https://en.wikipedia.org/wiki/Frame_language#Comparison_of_frames_and_objects

asyncnet and reading from multiple socks

2019-08-23 Thread blmvxer
I've attempted several approaches with this including trying to mix threads and async. what would be the best way to say send connect three sockets and read from each of the asynchronously?

Marvin Minsky frame model /extended with ordered storage/

2019-08-23 Thread dponyatov
* [https://en.wikipedia.org/wiki/Frame_(artificial_intelligence](https://en.wikipedia.org/wiki/Frame_\(artificial_intelligence)) * [https://web.media.mit.edu/~minsky/papers/Frames/frames.html](https://web.media.mit.edu/~minsky/papers/Frames/frames.html) What is the right code for implement

Re: rumpkernel or baremetal runtime to run Nim program standalone

2019-08-23 Thread dponyatov
Disabling GC and threads looks like a crutch. It is very strange not to use any achievements of the last twenty years in OS construction, as most of them available for free in source code. Maybe will something like FreeRTOS be great as a base for OS written in Nim?

Re: rumpkernel or baremetal runtime to run Nim program standalone

2019-08-23 Thread PMunch
If you disable the garbage collector and does some tweaks Nim is able to run on microcontrollers such as an Arduino or Attiny85. So it's definitely possible to run bare metal. There has even been an OS demonstrator written in Nim: [https://github.com/dom96/nimkernel](https://github.com/dom96/nim

Re: Nim + Flutter == bright future?

2019-08-23 Thread flutt
Flutter + Dart = bright future ([https://www.cleveroad.com/blog/flutter-ui-framework](https://www.cleveroad.com/blog/flutter-ui-framework)) But Flutter + Nim ... I don't think so