This is awesome! Keep up the great work guys :)
> AsyncDispatch2, an alternative to asyncdispatch, tradeoffs and design in the
> README.
But please, please, consider pushing this stuff upstream. Fracturing something
so fundamental is a really bad idea.
Yes, the stdlib is in dire need of more documentation.
For the `options` module specifically I don't think documentation for specific
procedures is what is needed. We need documentation at the top of each module
explaining its purpose, along with small and specific examples (that are
cook-book
For those interested: I plan to solve this in Nimble by implementing what is
described in this comment:
[https://github.com/nim-lang/nimble/issues/240#issuecomment-27708](https://github.com/nim-lang/nimble/issues/240#issuecomment-27708).
> Btw the yes program just spams "y" lines on
yeah, dropdowns are a no-go. Especially when considering that they don't
support mobile at all.
@StefanSalewski:
> > Statically typed and compiled, it provides unparalleled performance in an
> > elegant package.
>
> If you check the exact meaning of "unparalleled" you may get: "having no
>
I'm currently working with Pandas/Matplotlib in Python. They are very good
libraries and I would love to see them wrapped in Nim. So for what it's worth,
you have my support :)
**I'm pleased to announce that Nim in Action is now in print.**
I just received one of the very first printed copies, which means that if you
bought the printed book you should receive a copy soon as well!
Some pictures of the finished product:
[(more
> Crystal has gotten a highly distinguished mention in this month's update
> summary of the prestigious TIOBE prog lang popularity index:
>
>> The top programming languages are in a long term decline: both Java and C
>> have all time low scores in the TIOBE index. And almost all of the other top
Replied to your issue on GitHub
[https://github.com/khchen/winim/issues/5](https://github.com/khchen/winim/issues/5)
**@sdwfrost** just a case of compiling it for ARM and releasing the binary. It
would be nice if I could automate the building of these binaries somehow,
building on Windows, macOS and Linux takes too much time already.
I know there are still people hunting for a discount code so I figured it would
be a good idea to create a new thread for this.
Manning is celebrating the new year with a 50% off discount (`dotd123016`) on
all their books over this weekend:
[https://manning.com/dotd](https://manning.com/dotd).
50% off today only for those of you who haven't had a chance to pick up a copy
yet
See [https://book.picheta.me](https://book.picheta.me) for details.
**@Mennohexo** asking in a single thread is enough, stop creating new threads.
I will delete the 3 that you have created because at this point it is just spam.
Be patient and wait for a response from someone knowledgeable on this topic.
Run `nimble develop` in your library's directory, then simply add a `requires`
in your new project for that library.
This is a thread that I wanted to create myself in preparation for v1. Thank
you for creating it. For everyone reading this thread: **please let us know
your opinions of what needs to go before v1 is released.**
I'll probably read everyone's answers later, but here is the quick small list
off
**@dataman** there is no "attitude" we just miss new people sometimes (that's a
forum issue that needs to be fixed), apologies.
You've possibly got an older Nim in your PATH, check with `which nim` and `nim
-v`.
Awesome! I'd love to see an article on how you put all of this together. I can
even let you publish it on nim-lang.org if you'd like.
Sure. You can run it locally, grab the source here:
[https://github.com/nim-lang/website](https://github.com/nim-lang/website) (btw
PRs are always welcome in case you want to help :))
> And about 840px, top menu is start hiding most right items of menu, so on
> IPhones 5s/6/6plus its only Blog, Features and a small part of Install is
> accessible. On Google Nexus 4/5/6 situation a little bit better, you will
> have access to Install and part of Documentation top menu items.
Me and @Araq have been discussing what to do with the BountySource donations
(thanks @flyx for pushing us).
Since several months now we've received a fairly consistent amount of money
from the bounty source campaign. Now that we are confident that this is
sustainable, we'd like to spend the
> This choice force the user to follow the naming convention, otherwise, the
> highlighting becomes inconsistent and annoying.
Yeah, that's precisely why it's done and you should follow it. It's that simple.
Why not make the compiler enforce it? Because there are genuine cases where
it's just
Here you go:
[https://github.com/nim-lang/assets](https://github.com/nim-lang/assets)
There is not. But I don't think it's correct to be testing private functions,
testing the public ones should be enough.
The only way to test them is to put the tests in the same file.
**I have admittedly only skimmed this thread but it does seem like the
discussion has gotten a bit heated here. Please cool it and have a respectful
discussion.**
> I listed some popular projects. The purpose of this is to think about Nim: >
> * Why don't Nimers develop an os system? > * Why
Thank you for taking the time to write this up. Unfortunately I don't have any
suggestions on what we can do to improve the current situation.
> The solution? Prefixing or more-explicit-but-far-less-obvious naming. This is
> exactly what's happening in Julia (which shares a lot of concepts with
It looks like your Nim installation is outdated. Can you update it and try
again?
Tl;DR?
Nope, this is simply how sockets work. Your protocol needs to specify how big
the message is, or use some character to act as a message separator (for
example `\r\l`.)
@OderWat: Yes, this is already the case with the `AsyncHttpClient`. I plan to
introduce a `HttpClient` also which will deprecate the current synchronous API.
Hrm, I thought I fixed this here:
[https://github.com/nim-lang/nimbot/commit/734006b7446ab755a0395128f890d85d57d2a87b](https://github.com/nim-lang/nimbot/commit/734006b7446ab755a0395128f890d85d57d2a87b)
I guess not. But it's not a critical bug. Feel free to create a PR if you can
figure out the
Hello @gneu and thank you for purchasing my book. I have made a conscious
decision to omit some things from the book, Nim is a large language and space
is limited. Unfortunately term rewriting macros/templates didn't make the cut.
The reason is that I personally haven't used them much, as such
> Very nice but I think it should adhere to NEP-1.
I think we should just call it the "style guide", it's not even called `NEP-1`
in the [wiki
anymore](https://github.com/nim-lang/Nim/wiki/Style-Guide-for-Nim-Code).
I think your PR is fine. But it needs to be tested, the best way to create a
reliable times module is to create lots of tests for it.
For #2, and other questions around why things are the way they are in the code,
git blame is your friend. It's very likely that it was added through some other
Sorry. Not AsyncHttpServer, I meant AsyncHttpClient :)
If I understand you correctly, you want the doc gen to show the documentation
for exported modules inside the module that exports it?
I've run into things like this in the past and the reason for them usually is a
stack corruption.
Unfortunately I don't have any magic ways to debug this. I can see that you're
using raw pointers so it's likely that you're doing something unsafe
incorrectly, so I would start by carefully
For anybody still looking to buy Nim in Action, you can use code `wm070116lt`
today to get 50% off
[https://manning.com/books/nim-in-action?a_aid=niminaction_bid=78a27e81](https://manning.com/books/nim-in-action?a_aid=niminaction_bid=78a27e81)
Yeah... I suppose it is. But it's not a high priority right now.
I made this:
[https://github.com/dom96/webdriver](https://github.com/dom96/webdriver)
**@vonH** People told you why they downvoted you. And no, it's not time for a
"Nim Evangelism Strikeforce", this isn't something to aim for. It's time to
write thoughtful comments that encourage developers to use Nim, not "drive-by"
comments that give our community a bad name.
I'm a bit confused, how does GDB and JavaScript relate here?
> @timothee
>
> Why don't you write D as d? Please learn to write Nim with a capital letter.
> This is disrespectful at least.
I seriously doubt @timothee meant it in a disrespectful way. This is a
programming forum, not a parliamentary chambers so no need to call people out
for such things.
In regards to some other things written here:
> I'm "pretty sure" that I observed in Windows that asyncdispatch would use
> multiple different threads to run the code.
It doesn't, and it cannot do that unless you pass `--threads:on`. This is
assuming that Windows doesn't do something weird
There are two solutions:
* Ever new user's first post needs to be approved by a moderator.
* We introduce a flagging mechanism, so that forum users can flag spam and
once enough people flag it the post becomes invisible.
Of course, we can do both too. I think this is how HN works and it's
bump
> Thanks to you I noticed there are finally proper AST nodes for doc-comments
I'm fairly sure we had AST nodes for doc comments since forever.
> I can't write print as an simple procedure because Nim doesn't have
> keyword-only arguments
Not quite, you can't write it because you cannot mix
As far as examples are concerned we definitely want to have more of them, but
they need to be short. I have already said this in **@jlp765**'s PR. Take a
look at these for example:
> Do you already know when he will start and what will be the focus?
Starting this Friday and the focus will likely be related to concepts (which
zahary actually implemented originally).
**@mashingan** what returns 403?
For now it's 32bit only. Support for 64bit will come.
> Nim v1.17.2
*0.17.2
> When I try nimble test I get this error:
That does seem like there is something wrong. No idea what, but it might help
if you reinstall Nim. How did you install it btw? If not via choosenim then I
suggest you give it a go.
> .. but there is no nimble folder inside
@jzakiya I have read a lot in this post, but due to my own lack of time I
decided to skip most of it (so apologies if somebody mentioned this already).
Why doesn't Nim have better docs? Some reasons:
* Nim doesn't have full-time employees working on it (this is also why
telling us "you
> Araq if you want to succeed with this language you need to realize how silly
> it is to have style insensitive name parsing.
It really isn't that big of a deal. Don't judge a book by its cover. Try the
language and if you find some genuine problems with style insensitivity then
report them.
I don't think that's possible. Although that would be a nice feature.
Yes, we are working on a new website design incorporating that logo.
Like I said, it's probably fixed in that PR.
> Having said that, we should really expand the pragma annotations only after a
> mouse click.
The problem with this is that users won't be able to search for certain pragmas
in the documentation. But perhaps it's not that big of a deal.
> There is system.finished which can be used with iterators. I still think some
> kind of system.next would be of great help with readability/usability of
> iterators.
I do sort of agree. Maybe you could ask @Araq what he thinks about this
> I predict that soon Nim will compile to DNA, subatomic particles, music
> videos, sexual fantasies, and even tactless bizarre forum rants that go on
> and on and don't really have a point...
Don't mistake Nim for Haxe : P
Unfortunately not, but others have suggested this so perhaps it is a good idea
to make a more generalised `recvLine`. Could you create an issue for this
please?
Nice! I'm curious how it performs, do you have any plans for creating some
benchmarks?
**@moigagoo** thanks, will correct!
Argh, least you could have done @Fungi is create a new thread instead of
derailing this one. But never matter.
Good news is, here is an article with an excerpt from my book:
[http://freecontent.manning.com/delving-into-nim](http://freecontent.manning.com/delving-into-nim)
You can add a `TimeInterval` to a `TimeInfo` and then use `times.format` (I
think)
**This thread is now officially locked*.**
@Araq wanted me to remove this thread, and I may still do so. But in the
interest of transparency and historical significance I would like for threads
such as this to remain.
* The forum doesn't actually support locking, but I will delete any other
You need to give more info.
This example shows how to handle posting data:
[https://nim-lang.org/docs/httpclient.html#using-http-post](https://nim-lang.org/docs/httpclient.html#using-http-post)
Without knowing what data you want to send I can't help much more.
> @Stefan_Salewski, as i mentioned before site is not usable on resolution
> less, then 840px, so its not usable on tiny cell phone displays, its only
> usable on big cell phone displays.
In what way is it unusable?
> Navigation becomes much more harder, try to find link on forum or github
>
Updated the first post with the deadline.
I think you might need to add another `division` at the end of the `headers`.
**@vsajip** I think you may need to write `echo strfmt.fmt("{0:-12s} {1:s}",
sectname, line)`. But yes, that is a cryptic message.
> As far as I can tell VS Code does not support it.
It does.
1\. I'm not entirely sure what the purpose of your `contains` proc is, but you
should _probably_ fix it by creating a ` distinct string` and having your
`contains` proc work on that. Really, you should actually rename your
`contains` proc to something else because `contains` should always
> However, the new web site doesn't make that easy to do. The files sit in the
> webnews directory of the repository, but how you access them from the web
> site is a mystery to me.
You access them from the blog:
[https://nim-lang.org/blog.html](https://nim-lang.org/blog.html). Why isn't
this
@bli Thank you for taking the time to write down the pains you've experienced
while learning Nim
> Look here for instance:
> [https://codereview.stackexchange.com/questions/tagged/nim](https://codereview.stackexchange.com/questions/tagged/nim)
> Two questions only, none answered.
I didn't
Nice spotting. Yes, that's precisely what it is
But who knows how long it will take before it's ready for use.
Yeah, I guess my answer was incomplete. You need the `importc` and `header`
pragmas on the type as well.
Yes, this is a known bug that needs to be solved.
oh sorry, I guess it's supposed to be `~/.nimble/packages_official.json`
Sounds like we need to create a Nim user's map
Sorry to hear about the t-shirt size btw
@jzakiya Thank you for these suggestions and for writing up that longer post,
it was an interesting read. Please don't be dissuaded by the replies to this
thread so far.
Your suggestions are good, here are my requests/thoughts:
> Having access to various Ruby article feeder sites I recently
Last chance to get 50% off Nim in Action! Use code `pbbutcherlt`:
[https://manning.com/books/nim-in-action?a_aid=niminaction_bid=78a27e81](https://manning.com/books/nim-in-action?a_aid=niminaction_bid=78a27e81)
You guys might want to double check that. The docs.zip file was missing from
the server so it's likely it only started working for you after it was
uploaded, not due to a change in install path or the addition of admin
privileges. But I guess that's possible too :)
What is the rationale for removing named tuples?
Only way for us to figure this out is for you to grab a debug compiler to get a
stack trace. You'll need to bootstrap manually for that though.
Awesome. It's really nice to see some Nim love in this font :D
Hello everyone,
I have some good news. We have successfully obtained a stand at FOSDEM 2018
(taking place on 3 & 4 February 2018 in Brussels).
You can see a list of all the stands here:
[https://fosdem.org/2018/stands](https://fosdem.org/2018/stands)/
Now comes the time to invite you all to
Be sure to also look at the [nimble](https://github.com/nim-lang/nimble) and
[choosenim](https://github.com/dom96/choosenim) issues. There aren't many and
they're pretty well labelled so you can easily go through them all.
I'm afraid I had to edit your post myself.
New users are in moderation mode by default so that's probably what the issue
was.
There is no need for this procedure to be exported. You should use the `post`
procedure which uses this `format` proc:
[https://github.com/nim-lang/Nim/blob/master/lib/pure/httpclient.nim#L1197](https://github.com/nim-lang/Nim/blob/master/lib/pure/httpclient.nim#L1197)
Nim in Action is 50% off until the 25th of August using code `pbbutcherlt`:
[https://manning.com/books/nim-in-action?a_aid=niminaction_bid=78a27e81](https://manning.com/books/nim-in-action?a_aid=niminaction_bid=78a27e81)
Perfect opportunity to grab it if you haven't already. It's almost finished
This is fixed in this PR (I hope)
[https://github.com/nim-lang/Nim/pull/6694](https://github.com/nim-lang/Nim/pull/6694)
As a workaround you can download the packages.json file manually and place it
into ~/.nimble/packages.json
The sockets module is deprecated so that suggests that the example you are
trying to compile needs to be updated. In general I think all the examples that
are bundled with Nim need to be cleaned up, see the documentation for the
asynchttpserver for a more up to date example of a HTTP server.
Hello! Welcome to the Nim forum :)
I think that for Nim HEAD the idea is to use the included install_nimble.nims
script to install Nimble. Would that be acceptable?
Thank you for taking the time to update the Homebrew recipe!
Ahh, looking at the headers that httpclient sends again it seems like it's
buggy. The `Host` header is completely wrong. Please report this on GitHub:
[https://github.com/nim-lang/Nim/issues](https://github.com/nim-lang/Nim/issues)
In case you're interested in trying to fix it, here is the
50% off Nim in Action today
[https://twitter.com/d0m96/status/813491834064355329](https://twitter.com/d0m96/status/813491834064355329)
:)
Tried with `useSsl = true`?
> "It needs to be as short as possible"
>
> Why? Is that your personal preference, or is there some actual technical
> reason for this?
There is no technical reason, it's just easier for users to use your package if
its name is short. Writing `import mylongpackagethatisawesome` everywhere
My current upper estimate: 1 year
Lower estimate: 6 months
Araq would have loved to have it out by the end of this December, but I think
I'm blocking him a bit (stdlib needs a review).
Try `importc`, `importcpp` assumes the first parameter is a class instance.
The logo on the home page is the official logo.
The variation in the readme is another accepted alternative. Others are
deprecated.
1 - 100 of 634 matches
Mail list logo