More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-03-31 Thread Clonk
I'm interested in this project. I've been thinking of porting NuttX and littleVGL to Nim; but Zephyr is also on my radar. I think a github org is the easier way to organize.

AutoNim [AutoIt X3 wrapper]

2021-03-31 Thread Rozzamarine
I guess, I did something useful again. Or not: It's not really complete at this state, yet should work for common automation caseses. Any help with finding inconsistent or missing API would be appreciated.

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-03-31 Thread Araq
Not that I have too much free time, but I'm very interested. In the best case I can tinker with these chips myself a bit, but at least I can review your wrapping efforts.

I want to use gecko driver headless.

2021-03-31 Thread nnahito
Thank you for your reply! > try using the Chrome web driver. I see. I'll try it! Thank you very much!

I want to use gecko driver headless.

2021-03-31 Thread nnahito
Thank you very much for introducing a nice library, @yglukhov! I immediately ran the sample code, but I could not start it with the following error code. Additional info: "Requested command not found: \'\'. OS error:" Exception type: [OSError] Error: execution of an externa

Weak symbols

2021-03-31 Thread japplegame
Thanks. This will do.

How can I use SendMessage?

2021-03-31 Thread nnahito
Thank you everyone for an answer. I wrote the code referring to the answer from @shirleyquirk and it worked properly! Thank you very much. Also, thank you for the interesting information, @demotomohiro. Let me see this, too.

converting a hex string to uint32 in JS context

2021-03-31 Thread timothee
it's just a bug in compiler, IMO, and is fixable; followup: * *

How can I use SendMessage?

2021-03-31 Thread demotomohiro
If you just want to synthesize japanese speech from japanese text, [nimopenjtalk](https://github.com/demotomohiro/nimopenjtalk) can do that. It is [Open JTalk](http://open-jtalk.sourceforge.net/) and [hts_engine API](http://hts-engine.sourceforge.net/) bindings for Nim. You can get wav file or

Times in the VM?

2021-03-31 Thread Annati
I can't access this link, can I see it somewhere else?

Weak symbols

2021-03-31 Thread shirleyquirk
you can do this yourself with {.codegenDecl.} if you like.

2nd Nim online meetup

2021-03-31 Thread dom96
Recording of the _first_ meetup here:

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-03-31 Thread elcritch
Nim has been great for use on the ESP32's and I've implemented a few different projects this way. However, the ESP32's are pretty limited in their selection and only a fraction of the overall microcontroller / MCU market. FreeRTOS as a target is also pretty limited as it really doesn't provide m

Weak symbols

2021-03-31 Thread japplegame
Is there a way to define a [weak symbol](https://en.wikipedia.org/wiki/Weak_symbol)? GCC supports `__attribute__((weak))`. Is there something similar in Nim?

Weak symbols __attribute__((weak)) attribute

2021-03-31 Thread japplegame
Is there a way to define a [weak symbol](https://en.wikipedia.org/wiki/Weak_symbol)? GCC supports `__attribute__((weak))`. Is there something similar in Nim?

2nd Nim online meetup

2021-03-31 Thread bpr
It would be good to see a written summary of the issues brought up. I got the impression (please correct me if I'm wrong!) that there's a bit of trepidation around breaking changes in the new IC code.

Chrome Extensions with Nim, who would have thought?

2021-03-31 Thread Niminem
Hell yeah. My man

import to thread help

2021-03-31 Thread JPLRouge
hello thank you i will update my github now that it is working

Why is there no compile error when accessing uninitialize variable

2021-03-31 Thread jackhftang
Maybe I should use the words _many demands_ instead of _high expectation_. This is closer to what I mean.

Gimp plugin?

2021-03-31 Thread HJarausch
Many thanks, Mantielero. That's good start for a long journey.

2nd Nim online meetup

2021-03-31 Thread DavidKunz
Sorry to bother you, but are the recordings already available somewhere?

Nim Devel cannot compile Weave any more

2021-03-31 Thread Yardanico
This is a known bug, yes. You even reported it yourself -

Nim Devel cannot compile Weave any more

2021-03-31 Thread HJarausch
Am I the only one? Here, Nim Devel cannot compile Weave any more since mid-February. I get/home/jarausch/.nimble/pkgs/weave-#master/weave/cross_thread_com/scoped_barriers.nim(66, 12)| ---|--- Warning: Moving a shared resource (an atomic type). [User] fatal.nim(53) sysFatal Error: unhan

Why is there no compile error when accessing uninitialize variable

2021-03-31 Thread shirleyquirk
I have high expectations of Nim. why use it otherwise? and when it does something you dont like, more often than not There's a Pragma For That(tm).

import to thread help

2021-03-31 Thread Clonk
proc observer(w:webwsi;m:webwsi;d:webwsi;) {.thread} = echo "start observer" var server = newAsyncHttpServer() proc cb(req: Request ; ){.async.} = # ... Run So the issue is probably mixing async + thread. There are tons of threads about i

How can I use SendMessage?

2021-03-31 Thread shirleyquirk
you should ask the maintainer of that package and check the [docs](https://khchen.github.io/winim/winstr.html) to see if there's a nicer api for you. for example they provide converters from Nim strings to the various types of windows strings, and i don't know which one you need. check the manu

Create a data structure of strings mapped to arrays of strings

2021-03-31 Thread Yardanico
No, you can use arrays as well, maybe you didn't specify their length? In Nim arrays have static length (known at compile time, can't be changed at runtime)

I want to use gecko driver headless.

2021-03-31 Thread yglukhov
I've got a [lib](https://github.com/yglukhov/webdriver) lying around that might be of use. It works with both chrome and firefox, no gecko driver needed. And should support headless mode IIRC.

How can I use SendMessage?

2021-03-31 Thread enthus1ast
I think it must look like this: # For Reference # COPYDATASTRUCT* {.pure.} = object # dwData*: ULONG_PTR # cbData*: DWORD # lpData*: PVOID # https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-copydatastruct # cbData # Type: DW

Why is there no compile error when accessing uninitialize variable

2021-03-31 Thread francisl
@Yardanico I know it compiles, but having possible uninitialized variable is a nest of hard to debug. My example is trivial (based on the webpage code). But on real use case with complex branching, that could be hard to find. Especially when it's initialized with a default value so you don't eve

import to thread help

2021-03-31 Thread JPLRouge
hello code source ecr00 < I will stay with version 1.4 nim

import to thread help

2021-03-31 Thread JPLRouge
hello my test 1.4 nim is correct gc:arc or gc:orc very different and nim 1.2

I want to use gecko driver headless.

2021-03-31 Thread dom96
You might want to ask this on the geckodriver github issues, or try using the Chrome web driver.

Create a data structure of strings mapped to arrays of strings

2021-03-31 Thread bolino
Thanks! Works like a charm!

Why is there no compile error when accessing uninitialize variable

2021-03-31 Thread jackhftang
Isn't this common behavior? Popular languages like C/C++, Java, Go... all compile fine without initializing fields of struct/class. Though you may get some warnings in some IDE. All you need to do is to make the fields private and provide constructors. Sometimes, I am wondering why people have

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

2021-03-31 Thread zetashift
It's definitely adequate! VSCode experience is still the best though :(.

Why is there no compile error when accessing uninitialize variable

2021-03-31 Thread Araq
Easily done: import strutils type Person {.requiresInit.} = object name: string age: Natural var theValue: int var theValue2 = 5 var thePerson: Person # here I would expect uninitialized error! echo theValue echo theValu

How can I use SendMessage?

2021-03-31 Thread kcvinu
Try this var cds: COPYDATASTRUCT cds.dwData = 0 cds.lpData = "Hello World" cds.cbData = len(cds.lpData) + 1 Run

Why is there no compile error when accessing uninitialize variable

2021-03-31 Thread aEverr
"uninitialised" variables are actually default(/zero)-initialised if nothing is set, so it's equivalent to `var theValue = default(int)` and so

Create a data structure of strings mapped to arrays of strings

2021-03-31 Thread Yardanico
You can do it like that: import std/tables var mapping = { "male": @["男性", "homme"], "female": @["女性", "femme"], "unisex": @["ユニセックス", "unisexe"] }.toTable() echo mapping["male"] Run Or, if you want to fill it manually:

Why is there no compile error when accessing uninitialize variable

2021-03-31 Thread Yardanico
There are no errors in your code though - Nim value types are always zero initialized.

Why is there no compile error when accessing uninitialize variable

2021-03-31 Thread francisl
Hi, I was wondering if its considered a feature or something that will be implemented in the future. But right now, accessing an uninitialized variable not even compiles fine, but set a default value. I can imagine subtle bug to come out of this. e.g. import strutils typ

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

2021-03-31 Thread halloleo
Thanks @zetashift! So you are quite happy with nimlsp?

Create a data structure of strings mapped to arrays of strings

2021-03-31 Thread bolino
I'm very newbie to Python, and I'm trying to create a data structure equivalent to this in Python or in JSON: { "male": ["男性", "homme"], "female": ["女性", "femme"], "unisex": ["ユニセックス", "unisexe"] } It needs to be able to be easily parsed afterwards. I couldn't figure out how to map string

How can I use SendMessage?

2021-03-31 Thread ynfle
I don't know winim, but I don't think you can do `cds.lpData = ref "Hello World"`. It's not like C, `ref` is the type not a way to get a reference to something

How can I use SendMessage?

2021-03-31 Thread nnahito
I would like to send a message to Bouyomi-Chan on Windows using interprocess communication. So I wrote the following code. import winim var cds: ref COPYDATASTRUCT cds.dwData = 0 cds.lpData = ref "Hello World" cds.cbData = len(cds.lpData) + 1 # 13436904