Steven G. Johnson

@stevengj
5 Followers
18 Following
21 Posts
@mhsatman This is a terrible way to compute Fibonacci numbers if you care about performance. The fastest method in Julia is about 3000× faster than this for n=499: https://discourse.julialang.org/t/efficient-implementations-of-fibonacci-function-with-interesting-results/18123/5?u=stevengj
Efficient implementations of Fibonacci function with interesting results

The fastest method in Julia is probably to call the optimized C implementation from the underlying libgmp library: function fastfib(n) z = BigInt() ccall((:__gmpz_fib_ui, :libgmp), Cvoid, (Ref{BigInt}, Culong), z, n) return z end This is about 50% faster than your memo-ized fib implementation above (which means your fib function is quite good)!

Julia Programming Language
@mhsatman With BigInt arithmetic so you can go to larger Fibonacci numbers without overflow:

Happy National Poetry Day to all those who celebrate.

Here’s a poem called ‘In Search of Poetry’. It’s constructed entirely from popular Google searches about poetry.

Ah yes, I remember buying that textbook
@Elizafox It also works in Python 3 and most other modern languages that follow the Unicode standard on identifiers (https://www.unicode.org/reports/tr31/tr31-33.html), since U+1433 ᐳ and U+1438 ᐸ are categorized as letters by Unicode.
UAX #31: Unicode Identifier and Pattern Syntax

Via Meidas Touch:

#KamalaHarrisForPresident

@w7voa My cynical suspicion about CAPTCHAs has always been that the companies are actually using some fraction of them to harvest AI training data. (That is, say 10% of the time they are not testing you, they are using your labor to create labelled images for training future AI systems.) Others have made the same argument too: https://www.techradar.com/news/captcha-if-you-can-how-youve-been-training-ai-for-years-without-realising-it
Captcha if you can: how you’ve been training AI for years without realising it

All those little visual puzzles add up to AI advances

TechRadar
Procrastiworking. #funny #comics #webcomics
ceremonial armor! #art #MastoArt #CreativeToots
@b0rk Have you ever read the online (web) manual for a GNU program? Chances are good that it was generated from the info docs. At this point, info (.texi files) is more of a wiki format for generating manuals than something you access via the "info" terminal program.