Video Seo: How to Optimize Video for Search

2022-01-02 Thread mahmud444
With over 2 billion active users worldwide on YouTube, it's no wonder that video has become such an important marketing tool for so many people. According to the Cisco Visual Networking Index, video views will account for 82% of all internet traffic by 2022, for both consumers and businesses. If

Why does 'string' and 'len' use 'int' rather than 'uint' for length?

2022-01-02 Thread Araq
> Well, it kind of explains how the standard library is not very consistent > with using Natural type for indexing Well indexes should be Natural, lengths should be `int`. Though `Natural` would probably be better as a second order type requirement like `.requires: x >= 0`. > Here's an interest

Help with metaprogramming

2022-01-02 Thread keks84
Sample generated code from "symbolically" running the for-loops using for x = A\b > // loading A > A[1] = gn_C1 + 1/RC1; > A[2] = - gn_C1 - 1/RC1; A[3] = -1; A[4] = - gn_C1 - 1/RC1; A[5] = gn_C1 + > gn_C2n + 1/RC1 + 1/RC2N + 1/Rshort_antp_

Why does 'string' and 'len' use 'int' rather than 'uint' for length?

2022-01-02 Thread Zoom
> No, that's not the "real issue", if you make `x.len - 3` produce an underflow > instead then common loops like for i in `0..x.len - 4` crash instead of > iterating 0 times... Relying on `0..s.len-X` iterating 0 times when X>len is not a good practice in my opinion, as it's not clear from the

Help with metaprogramming

2022-01-02 Thread SolitudeSF
Huh?

Help with metaprogramming

2022-01-02 Thread keks84
Thanks for replying. I am an absolute beginner in Nim, so please bear with me. Looks like an ordinary numerical function, where is the code generation? As use case, an algorithm for x=Ab (like gaussian elimination) and sparsity pattern for A and b, is converted to an array of simple expressions

Youtube "Software Drag Racing" to count primes in Nim

2022-01-02 Thread GordonBGood
@dom96: > it's really hard to gauge which language is truly faster among the top > 10(20?30?). I suppose the take away is: they are all pretty much on par. How do you see that? In order to qualify for actual comparison, contributions must be single-threaded/base/faithful-to-base so from your li

enum in macro

2022-01-02 Thread ynfle
This should work proc getDefaultFiles(): array[TEMPLATE_FILES, string] {.compileTime.} = for i in TEMPLATE_FILES: result[i] = staticRead $i Run

Help with metaprogramming

2022-01-02 Thread planetis
I don't think a macro is necessary in your case, a proc can work just fine: proc `[]`*[T](m: Matrix[T], i, j: int): T {.inline.} = result = m.data[i * m.n + j] Run

Help with metaprogramming

2022-01-02 Thread keks84
Hi, I am considering Nim as programming language for its metaprogramming capabilities. As a test case for code generation, I would like to convert matrix expressions like `A[i,j]` to `Avec[3]`, given` i = 1`,` j = 2`. In Matlab this could be done using string manipulations, in Julia on the AST

Links to Std library lead to a 404

2022-01-02 Thread Yardanico
Hello! The link you've posted goes to the development repo which has the actual documentation files, but the files are written for the web documentation hosted on \- there all links work as expected.

Links to Std library lead to a 404

2022-01-02 Thread freeflow
Hi. Just thought I'd report that links on this page just give a 404

Youtube "Software Drag Racing" to count primes in Nim

2022-01-02 Thread dom96
For those wondering (like I was) about how to get the actual results (you need to click the "Leaderboard" under the filters or just click the following link): [https://plummerssoftwarellc.github.io/PrimeView/report?id=davepl-1641120327.json&hi=False&hf=False&hp=False&fi=&fp=mt&fa=wh~ot&ff=uf&fb=u

Comments and criticism,please: Nimplementation of Church Numerals

2022-01-02 Thread GordonBGood
@shirleyQuirk, I have been intrigued by this ever since I first saw this post, and [extended your excellent contribution](http://rosettacode.org/wiki/Church_numerals#All_closures_and_a_union_for_type-punning) to add the Church Numeral functions of the isZeroChurch predicate, the Church predeces