Niles Salter

Results 58 comments of Niles Salter
trafficstars

Similarly, it would be convenient if characters like á (U+e1) were in the font out of the box as well.

If you want to truly emulate JS truthiness, at least in this context, you are going to need to use if statements. Consider: ```ts function f(x: string | null) {...

Having a real `length` field of arrays would alleviate problems like so: ```ts const getSize = (x: "length") => [][x]; getSize() // should be 0, got undefined ``` Also, here's...

If you want, you can add "procname" to this array. https://github.com/SaswatPadhi/pseudocode.js/blob/567fa3117b0c811e887cef5c520389c0415b05d5/src/Parser.js#L364 Then, before your pseudocode you can use procname: ``` \begin{algorithm} \begin{algorithmic} \PROCNAME \CALL{Insertion-Sort}{$A, n$} \FOR {$i = 2$ {\bfseries...

It's about time! This is a good feature for TypeScript. I will leave this issue open until it is ceremoniously closed by #2195

Of course! I hope everyone got their pseudocode to look how they like it. And thank you for making this library!

> A few questions from my side > > * 1. Could this be simplified as to not requiring new keywords, say if we use the same keywords as "pdep"...

> packSelect is a very useful operation, but it seems like it will be difficult to get consensus on an implementation if it's a builtin. Some of the fastest implementations...

I heard about [simdprune](https://github.com/lemire/simdprune) but for some reason didn't link it here. It's an implementation that should be considered.

> > Some of the fastest implementations of this operation on targets like AVX2 involve giant lookup tables of tiny lookup tables. > > Do you have any numbers or...