Re: Alias for proc names -- any progress?
> Will you alias work for the result variable too? Would be great -- I had > often procs like it works, I just added a test case for that see [https://github.com/nim-lang/Nim/pull/11822/files#diff-ef6ec6154188e96632ac5bf114a7c1faR131](https://github.com/nim-lang/Nim/pull/11822/files#diff-ef6ec6154188e96632ac5bf114a7c1faR131) (simply use r:=result and it just works)
Re: Nerve: RPC framework for Nim
I'm bumping this thread with the 0.2.0 release of Nerve. I put in some time to improve the abstractions and capabilities of the framework. A quick summery: * Rename rpc macro to service * Native target clients * Constructors for clients and servers * Different client drivers * Server injections With these changes, Nerve can now support different transport methods, as well as server injected references to other RPC services. I'm sure there are some corner cases I haven't covered, as well as some error messages that could be improved, so any feedback is welcome. The github repo has more information, and I've started documenting the individual modules as well. [https://github.com/nepeckman/nerve-rpc](https://github.com/nepeckman/nerve-rpc)
Re: nimble is not installing nimongo
You might have better luck removing Nim and installing it using choosenim: [https://github.com/dom96/choosenim#unix](https://github.com/dom96/choosenim#unix)
Re: Nim standard library on embedded platforms
In this case I think a PR to get this done is fine, it shouldn't require much changes. It'll be easier to discuss in the PR and be more efficient time-wise.
Re: Nim vs V language
The topic has been drifiting away from technical merits, design, ergonomics or even marketing strategy. I think it's time to let it rest.
Re: Nim vs V language
I did use assembler on the commodore 64 a long time ago producing 6502 machine code, but for now ill stick with Nim but maybe switch to Pascal (I tried Python, Perl, Rust, Fortran, D Language) if Nim cannot do what I need. Thank you for your input :-)
Re: nimble is not installing nimongo
I also had problems with manjaro package. I prefer now to install from github, it works better
Re: How to Maintain a Nim Chinese Community
大佬是中国人吗?有没有在Nim开发集中营的qq群里?
Re: How to Maintain a Nim Chinese Community
很喜欢React中文社区,当时就是靠着它和每天中午吃饭的时间,花了俩礼拜入门了React。 然后我已经在尝试使用NimForum建论坛了,但是我水平太菜了。。玩不明白。。
Re: nimble is not installing nimongo
I just installed it through manjaro's package manager: pamac-manager
Re: How to Maintain a Nim Chinese Community
> and my feeling is that Chinese people with a scientific background are very > good in English. Sure, the more advanced the education, the more so it is. But we don't want only the experts can use Nim ,do we? I have heard a saying from Lei Jun who is the ceo of Xiaomi co. : Let more people enjoy the pleasure of science and technology. To make more programmers use Nim easily to do more things that is what we want, isn't it ?
Re: How to Maintain a Nim Chinese Community
> Some will go the extra mile just because of Go/Rust and for some others they > will always rely on Chinese mirrors. Yes,it is right. I won't to talk about the GFW, but we cannot got lots of resource exactly. And i'm very wonder why the Nimble can be used so perfect . If I don't use the Debian mirror or Composer mirror, i almost cannot download any things,but Nimble isn't. I can download karax by Nimble 4M/s unbelievably. So i don't think the mirror is the main problem at present. I still think the i18n of Official Website and the l10n communication environment is the key. Like @mratsim said , instant messenger is important and there are some of these ways.
Re: How to Maintain a Nim Chinese Community
> They're not good at store infomations. For examples: a green hand comes and > asked a question about why he cannot install the Nim v0.20.2,some men told > him warmly. And another new man comes to asked the same questions, the others > told him again. And it will may be happended again and again and again,there > will not be any man will to teach them at last. And as u know , the green man > here total have many same problems. True. But you can't force every beginner to ask questions on a public forum. If you can redirect them to the forum, then that would be cool. And forums are originally the right places for asking beginner questions.
Re: How to Maintain a Nim Chinese Community
> This shouldn't depend on the core team. People in the FLOSS communities > should be more proactive - don't wait for "The Center" to give orders. I'm agreed to you very much, I also think open source community need more people to do something spontaneously. > (Sad that IRC is no longer the first chat protocol to be mentioned...) Unfortunately, that may be the case. More and more Web Programmers and Software Developer don't to use IRC, maybe they don't even know what it is.I don't know if it is only happend in China. Like @zulu said,we use Wechat or Tencent QQ totally. Of course, many chinese programmers still like irc who like trying some new things(eg: new OS or new language),they often use linux.
Re: How to Maintain a Nim Chinese Community
Based on experience of Chinese React community, there are several things we can do: * send Chinese blog posts on Nim to sites like SegmentFault, Zhihu, Juejin, as well as Weibo to gain attractions. * get a Chinese Nim WeChat group for communications, about news and problem solving. * setup a forum for open discussion in Chinese. * SEO, for example a Wiki page people can find, and join the community, WeChat and the forum. first things is always to build connections with other Chinese programmers who are devoted in Nim, or at least interested in it. Selling new languages/tech to companies is always hard. It might be the last step to spread Nim after we got a really big community of programmers.
Re: Alias for proc names -- any progress?
Will you alias work for the result variable too? Would be great -- I had often procs like [https://github.com/StefanSalewski/cdt/blob/master/src/cdt/dt.nim#L92](https://github.com/StefanSalewski/cdt/blob/master/src/cdt/dt.nim#L92) where the symbol result is used really often. And the disadvantage of the term result is, that it is long and name does not indicate the true meaning of that value. No problem for short procs, but for longer procs, or when the term result is used very often, I would really like an alias. I know that this is only a PR, but as timothee is one of the really smart devs, it should be merged soon...
Re: How to Maintain a Nim Chinese Community
Thanks for your introduction! I will try to contact them straight away. I have been found a Tencent QQ Group talk about Nim,but I don't think instant messenger can instead of a forum and a home page. They're not good at store infomations. For examples: a green hand comes and asked a question about why he cannot install the Nim v0.20.2,some men told him warmly. And another new man comes to asked the same questions, the others told him again. And it will may be happended again and again and again,there will not be any man will to teach them at last. And as u know , the green man here total have many same problems. Sure,they can google their problem(In fact, they often use Baidu to search their keyword ,but it usually cannot help them.).And some of them might find the solutions in someone's blog, and the other cannot find it .A forum is more good for a language user to resolve their problem,isn't it ? They're just some little thought myself, I have no experience in maintaining the community. If there are any mistakes, please correct them.
Re: How to Maintain a Nim Chinese Community
I don't know if it's necessary for someone to hiring a chinese speaker for community management and engagement . As I know , some companies in China is already beginning try to use Nim to build their Projects and systems . But Nim has not been popularized and promoted .More chinese perfer to try Go and Rust. Almost in every edu platform ,lessons of go-lang are necessary. They have a community and lots of promoter, almost everyone is talking about go or docker whether they need them or not.
Re: How to Maintain a Nim Chinese Community
感谢,我nim并没有学的太好,但是我很喜欢它,所以就想对社区做点贡献,如果您那已经在用了可以一起交流~
Re: How to Maintain a Nim Chinese Community
Thanks for first reply ~ I will let the forum and HomePage run first. PS: Exactly, the translators are usually not useful enough .
Re: How to Maintain a Nim Chinese Community
> This shouldn't depend on the core team. People in the FLOSS communities > should be more proactive - don't wait for "The Center" to give orders. It > would be awesome if any "special interest group" sponsored special Nim > communities and projects, be it on the basis of spoken language, geographic > location, focus priority (ex. web frameworks, desktop apps, license purity, > etc), or anything else. You need to maintain a certain level of trust. Especially with a large group of people of very different cultural heritage. It's also important to maintain a transparent, official stream of information. > (Sad that IRC is no longer the first chat protocol to be mentioned...) There > are already multiple Nim channels on FreeNode, but that's only the beginning. > As you can see with Python, for example, it's common to add suffixes for > sub-communities, including based on language. So there can be #nim-ru, > #nim-de, #nim-zh (for Zhōngwén == Chinese), etc... Please keep in mind that different cultures have different habits and IRC is irrelevant in some countries. It's important to be where your users are and in this case it's WeChat. Also keep in mind that it's very difficult for chinese users to utilize the resources that are available to western programmers. You can't rely on github or gitlab to be available and it is a hassle for a lot of users to try to get around the GFW. Some will go the extra mile just because of Go/Rust and for some others they will always rely on Chinese mirrors. It's also important to think about the politics when engaging with chinese speakers. You can get your website DDoSd by the part if they find out something they dont like. eg. @Ward is i think Taiwanese ? > Generally my impression is that native language groups are fine for kids and > very old people. But today learning english is even more important than > learning C language, and my feeling is that Chinese people with a scientific > background are very good in English. I strongly disagree. English is not as important as people think it is. Especially not in the East and a lot of people dont really have a need to learn it. Including programmers. Also chinese presence on GH or anywhere else is really tiny compared to the activity on the "chinese internet".
Re: FFI: help converting macro into template
Are comp a ModelInstance or is it a pointer to a ModelInstance? In C the "->" operator takes a pointer to a struct and the field we want and then dereferences it. The equivalent Nim code in that case is: template r(vr: untyped): untyped = comp[].r[vr] Run And if you want to write it like in the C code this template does it: template `->`(s, f: untyped): untyped = s[].f Run Then the template becomes: template r(vr: untyped): untyped = comp->r[vr] Run
Re: Alias for proc names -- any progress?
As I understand it, this is still a pull request that hasn't been merged. I think having aliases would be great, but I also see the potential conflict with already defined operators that is mentioned in the comments of the PR.
Re: How to Maintain a Nim Chinese Community
Maybe Chinese is indeed special, but generally splitting and fragmenting can be very bad. For example German wikipedia -- english content is in most cases much better and easier to understand than german content. For computer programming -- one of the few good german books I read was from N. Wirth 30 years ago, I am not aware of other really good CS books in german languages. This is even more true for books about physics. My only good experience with native language groups was in the past with Latex and electronics in usenet, something like de.lang.latex and de.sci.electronics. Experience was good, because these communities contained some german speaking experts that time. But Araq and mratsim seems to speak Chinese not that well, so some other chinese speaking experts would be needed. Generally my impression is that native language groups are fine for kids and very old people. But today learning english is even more important than learning C language, and my feeling is that Chinese people with a scientific background are very good in English.
Re: Nim vs V language
> what language next...cos we have... If you think that we do not need new computer languages and you do not appreciate the hard work of languages developers, then you are free to use binary codes, or maybe assembler, cobol or fortran.