timmyjose / timmyjose.github.io Goto Github PK
View Code? Open in Web Editor NEWTechnial thoughts, ideas, and experimentation.
Technial thoughts, ideas, and experimentation.
A quick suggestion to make the Rust coin change problem more similar to the Zig version:
https://www.reddit.com/r/rust/comments/i1ayyj/the_coin_change_problem_in_ats_rust_and_zig_a/fzvv7wi/
test2 in https://github.com/dambaev/coin_change contains version with a reference of array, like in Rust.
on my PC it gaves:
coin_change (25) = 13
coin_change (100) = 242
coin_change (1000) = 142511
real 0m0,177s
user 0m0,177s
sys 0m0,000s
in contrast to original one:
oin_change (25) = 13
coin_change (100) = 242
coin_change (1000) = 142511
real 0m0,215s
user 0m0,214s
sys 0m0,001s
2020-09-16-lazy-primes-in-idris.md
The output in the implementations have '9' and '15' etc, which are not prime numbers. sieve should be recursive:
sieve (p : xs) = p : sieve (filter (\x -> x `mod` p /= 0) xs)
I'm not sure how this affects the relative performances between the two languages, but 1000000 was definitely too much for my laptop, 10000 itself took 2 seconds in haskell.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.