Re: Nim + Flutter == bright future?

2019-03-30 Thread george33
People are not happy when have to study and adopt a new non-popular complex framework. If make for them adoption a popular and superior framework their satisfaction and interest obviously will be much bigger. I want to use Nim and such reason for sure force me do that. Nim + Flutter tears like a

macros to generate class

2019-03-30 Thread tbutton
hello, i want use urho3d. for this, i need create class with functions. i made it {.emit:"class MyApp:public Application{public:MyApp(Context* context):Application(context){}virtual void Setup();virtual void Start();virtual void Stop();};".} proc Start{.codegenDecl:"$# MyApp::

Re: How to compile and run a Nim program on the Android?

2019-03-30 Thread mashingan
try more the recent post [https://forum.nim-lang.org/t/3575#22318](https://forum.nim-lang.org/t/3575#22318)

Re: How to compile and run a Nim program on the Android?

2019-03-30 Thread mrhdias
I tried to follow the recipe of this [post](https://forum.nim-lang.org/t/1866#11698) but without success :-( $ wget https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip $ unzip android-ndk-r19c-linux-x86_64.zip S YSROOT=/home/hdias/Downloads/android-n

Re: How to compile and run a Nim program on the Android?

2019-03-30 Thread cantanima
> If I change the location and try to run it gives another error: not > executable: magic 7F45 That sounds like the executable is not built correctly. I hope someone helps you find a solution, because I'm also interested in using Nim to build Android executables. Kotlin is pretty good, but it w

Re: How to compile and run a Nim program on the Android?

2019-03-30 Thread mrhdias
Yes I enable developer options and software from untrusted sources. I discovered that the problem is to write on the sdcard0. If I change the location and try to run it gives another error: not executable: magic 7F45 $ adb push test /data/local/tmp/test $ adb shell /data/local/

Re: Nim + Flutter == bright future?

2019-03-30 Thread mrhdias
Another alternative: [https://kivy.org](https://kivy.org) Nim can speed up up this framework. The rapid adoption of Nim can pass through the mobile apps.

Re: Nim + Flutter == bright future?

2019-03-30 Thread george33
Current version is for Android & iPhone. This year Google promised to release stable version for desktop & web [https://github.com/google/flutter-desktop-embedding](https://github.com/google/flutter-desktop-embedding) , [https://medium.com/flutter-io/hummingbird-building-flutter-for-the-web-e68

Re: Weird results on aarch64

2019-03-30 Thread cantanima
This works for me on x86_64 with a given web address that I know exists. You're selecting random web addresses. I'm not familiar with how many IP numbers are actually taken, but maybe you should try it with a web address that you know exists.

Weird results on aarch64

2019-03-30 Thread blmvxer
Just recently I found weird results when testing my RandIP on Aarch64 compared to Armv7l or even x86_64. Every connection even if false comes out as true on aarch64 compared to any other Arch nim ''' proc main(): string {.discardable.} = randomize() var ip0 = rand(1..255) ip1 = rand(2

Re: How I feel about Nim

2019-03-30 Thread Libman
IMHO, the Nim development and code reading experience would benefit greatly from advanced IDE features, which as of yet don't exist. (VScode is the best supported editor at present.) Nim doesn't force you to explicitly repeat the module prefix where something comes from - if the compiler can fi

Re: Nim + Flutter == bright future?

2019-03-30 Thread Libman
Flutter is just Android & iPhone, right? I'd rather see advancement of [nimX](https://github.com/yglukhov/nimx) to make truly portable GUIs, including OpenBSD desktop, [Librem5](https://puri.sm/products/librem-5/) phone, etc.

Nim + Flutter == bright future?

2019-03-30 Thread george33
I haven't seen any suggestion about Flutter adoption in Nim. For me it is obvious that Nim much better Dart and a lot of people if they have options would choose Nim if they used Python or another concise languages. Anyway Nim needs universal C++/Js GUI and Flutter is the best choice for nearest

How I feel about Nim

2019-03-30 Thread zulu
Nim is easy to write but hard to read. I often have troubles coming back to my projects and trying to understand the little differences of nim compared to my other projects in more mainstream languages. Due to the very few medium to advanced projects out there I often struggle to follow somethi