Re: Domain modeling in Nim

2019-11-10 Thread edu500ac
eterps, the links you provided are great and certainly will answer the question about domain-modelling. I will pass them to the Canadian student.

Re: A taxonomy of Nim packages

2019-11-10 Thread Willyboar
Well, I think awesome-nim is abandoned. If anyone knows the creator it would be nice if he wants to pass the repo to the official nim organization or to someone active in the community.

Re: let & const on C backend

2019-11-10 Thread exelotl
> Then, I need to import this C var into nim? This does not look like a good > idea. Yeahh, in my project I'm using this pattern all over the place, because it's basically the only option right now. It works but it's cumbersome, I'm looking forward to the day when Nim has a proper solution to

Re: Cannot Install Nim

2019-11-10 Thread Hideki
I’m not sure I could help you, but anyway, Congrats!

Re: Domain modeling in Nim

2019-11-10 Thread mikra
Hi edu500ac I know. I just liked to say that thats "old wine in new skins". but besides of that we have now three links to excellent reading matter.. Also java is the worst language to start with. Why? you are forced to go with the "dogs,cats and animals"; misconception of reuseable code and

Re: Domain modeling in Nim

2019-11-10 Thread eterps
> By the way, I don't like traditional Software Engineering, UML, etc. However, > many students asked for material about domain modeling in Nim. I started experimenting with that here: [https://github.com/eterps/designing-with-nim-types](https://github.com/eterps/designing-with-nim-types)

Re: Domain modeling in Nim

2019-11-10 Thread edu500ac
Hi, mikra, I know the Thinking Forth book, by Leo Brodie. I agree with you, it is very good indeed. However, young people want to follow the trend, things that don't work, as mratsin hinted. I guess you know the following article:

Re: Domain modeling in Nim

2019-11-10 Thread edu500ac
Hi, mratsin. I am not talking about writing a MUMPS interpreter in Nim. Every physician has access to the official MUMPS. In fact, every physician in the United States starts his/her medical residency with MUMPS and CCL. Besides, the physician needs to take a high stakes test, USMLE step 2

Re: A taxonomy of Nim packages

2019-11-10 Thread spip
> For example Araq listed the GUI packages recently, I think that were at least > 8. You are listing only 3, missing at least nigui and gintro. > > It is OK that > [https://github.com/StefanSalewski/cdt](https://github.com/StefanSalewski/cdt) > is not contained because it is not yet advertised

Re: A taxonomy of Nim packages

2019-11-10 Thread spip
> Though I strongly disagree with putting nimbus and blockchain in Finance. Please give me a better class name for them. Is "Blockchain" a good one?

Re: Nim for Statistics

2019-11-10 Thread cblake
Oh, and while I'm sure mratsim already knows all this, because this is a thread about Nim and statistics and R and other things and most passers by/search results finers probably do not know this, it bears noting that these binary indexed sum trees are often the fastest way to compute things

Re: A taxonomy of Nim packages

2019-11-10 Thread spip
When you decide to take vacations and visit a new country, I hope you take a tourist guide or a map of that new location and don't go at random with only a GPS. A map is not complete but indicates interesting places. Depending on your interest in history or gastronomy, you'll take different

Re: Play audio in Nim ?

2019-11-10 Thread juancarlospaco
xylophone [https://github.com/juancarlospaco/nim-presentation-slides/blob/master/ejemplos/avanzado/web_audio/main.nim](https://github.com/juancarlospaco/nim-presentation-slides/blob/master/ejemplos/avanzado/web_audio/main.nim)

Re: Play audio in Nim ?

2019-11-10 Thread Stefan_Salewski
` nimble search audio ` Run

Re: Nim for Statistics

2019-11-10 Thread cblake
For an alphabet size `A` (any int), an actual Fenwick Tree needs only `n = ceil(log_2(A))` array slots. If `A` is a power of two they need no extra memory over a simple histogram. Your `fenwicktree.newSampler` uses `2*n-1` (for that same `n`). And it's not some +-0/1-origin indexing threshold

Play audio in Nim ?

2019-11-10 Thread zulu
Are there any bindings to some audio libs that allow you to play different audio formats ?

Re: Domain modeling in Nim

2019-11-10 Thread mratsim
[rant=on] UML is not traditional software engineering, it's a big business approach to software, often associated with waterfall design_. Unfortunately it implies a lot of human overhead (useless meetings) even though software and its

Re: Nim for Statistics

2019-11-10 Thread mratsim
@cblake: I'm pretty sure I don't. For a tree of size N (power-of-2) I use 2N-1 memory. If it uses more it's a bug. Also AFAIK traditional fenwick trees often use one-based indexing but those requires 2x memory when N is a power of 2. I agree with the F+tree sentiment, I was a bit confused

Re: Domain modeling in Nim

2019-11-10 Thread mikra
understand the real world businesscase - that's "domain modeling" in short. That is a general requirement to be able to develop software for a specific domain at all. Besides of that nothing new - for instance this book is a must read for each serious engineer (especially the tips - no need to