countwords
learnxinyminutes-docs
Our great sponsors
countwords | learnxinyminutes-docs | |
---|---|---|
43 | 226 | |
209 | 11,153 | |
- | - | |
5.9 | 9.1 | |
about 2 years ago | 1 day ago | |
Rust | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
countwords
-
How fast is really ASP.NET Core?
"dang, I didn't know that was 50x faster than the idiomatic way" or "hey, I didn't know that this implementation in the stdlib prioritized this over that and made this so slow, that's interesting" -- .e.g, there's some kinda neat language details to be found in something like Ben Hoyt's community word count benchmarks repo and 'simple' vs 'optimal' code: https://github.com/benhoyt/countwords
-
Correct name for word matching problem
It benchmarks programs that count the total number of unique words in some input. It's not exactly equivalent to your problem, but it's similarish. All of the programs used some kind of hash map for lookups, but I contributed a program that used a trie. Its performance in my experience varies depending on the CPU interestingly enough. On my old CPU (i7-6900K) it was a little slower, but on my new cpu (i9-12900KS) it was faster.
-
Performance comparison: counting words in Python, C/C++, Awk, Rust, and more
Why not read the source code? :-)
I wrote comments explaining things: https://github.com/benhoyt/countwords/blob/8553c8f600c40a462...
-
do you guys prefer functional programming style when using rust?
My own code example of a drastic speed up (~25%) simply replacing a couple of for loops with iters: https://github.com/benhoyt/countwords/pull/115
- Ripen scripting engine (Similar to RetroForth, but tiny)
- Performance comparison: counting words in Python, Go, C++, C, AWK, Forth, and Rust
-
The difference between Go and Rust
And yet Go was faster than Rust in a simple app that count words: https://benhoyt.com/writings/count-words/
-
How to Rapidly Improve at Any Programming Language
> but the performance profiles & characteristics that we must know about in order to make a choice on which tool to use. And it shouldn't be that each user has to figure it out on their own, dig into PR's or whatever.
That's an interesting take โ I like the idea of a catalog of standard tasks with implementations in several languages as well as their performance characteristics. I suppose Rosetta Code gets the ball rolling with this, but it's missing some performance metrics. It reminds me of [Ben Hoyt's piece](https://benhoyt.com/writings/count-words/) on counting unique words in the KJV Bible in different languages.
-
Faster string keyed maps in Go
This article shows that map lookups can be optimized by using the (unintuitive) pattern:
- Go beats out several top languages including Rust in this performance matchup
learnxinyminutes-docs
-
Scripts should be written using the project main language
> Sure, maybe for some esoteric edge cases, but 5 mins on https://learnxinyminutes.com/ should get you 80% of the way there, and an afternoon looking at big projects or guidelines/examples should you another 18% of the way.
Not for C++, and even for other languages, it's not the language that's hard, it's the idioms.
Python written by experts can be well-nigh incomprehensible (you can save typing out exactly one line if you use list-comprehensions everywhere!).
Someone who knows Javascript well still needs to know all the nooks and crannies of the popular frameworks.
Java with the most popular frameworks (Spring/Boot/etc) can be impossible for a non-Java programmer to reason about (where's all this fucking magic coming from? Where is it documented? What are the other magic words I can put into comments?)
C# is turning into a C++ wannabe as far as comprehension complexity goes.
Right now, the quickest onboarding I've seen by far are Go codebases.
The knowledge tree required to contribute to a codebase can exists on a Deep axis and a Wide axis. C++ goes Deep and Wide. Go and C are the only projects I've seen that goes neither deep nor wide.
-
100+ FREE Resources Every Web Developer Must Try
Learn x in y minutes: Concise tutorials to learn various programming languages and tools quickly.
- SQL for Data Scientists in 100 Queries
-
New GitHub Copilot Research Finds 'Downward Pressure on Code Quality'
StackOverflow's making their own competing LLM for all this stuff.
IMO, one of the biggest problems with the way people use LLMs right now, is that they're being treated as a single oracle: to know Java, it must be trained on examples of Java.
It would be much better if their language comprehension abilities were kept separated from their knowledge (and there are development efforts in this direction), so in this example it would be trained to be able to be able to read a Java tutorial rather than by actually reading a Java tutorial, so when the overall system is asked to write something in Java, the language model within the system decides to do this by opening https://learnxinyminutes.com and combining the user query with the webpage.
I think this will help make the models more compact, which is a benefit all by itself, but it would also mean that knowledge can be updated much more easily.
Someone would have to actually do this in order to see if those benefits are worth the extra cost of having to load a potentially huge a tutorial into the context window, and likewise the extent to which a more compact training set makes the language comprehension worse.
-
Ask HN: Programming Courses for Experienced Coders?
The project was created and is maintained by Adam Bard, but is open sourced with over 1.7k contributors since 2013
https://github.com/adambard/learnxinyminutes-docs
-
Ask HN: How to learn to be a programmer in 20 years?
So you have studied programming for at least 5 years, what kinds of programs have you written? Apparently you have already applied your skills, since you have "created a good reputation among developers"? Why a time-frame of 20 years, why not 20 months or 20 weeks? Heck, you can learn a lot in even 20 days!
Once you have learned a few languages, libraries and frameworks then learning new stuff becomes much easier. At that point I'd recommend to check the website https://learnxinyminutes.com. Meanwhile, continue asking questions here and elsewhere :)
An other tip, if you are into computer science and algorithms stuff I recommend you try to solve problems which are posted at https://codegolf.stackexchange.com. You don't need to try solving them in less than X characters, but just to get them solved by any means necessary. And don't take too much bad influence from the posted solutions.
- Lean 4.0.0, first official lean4 release
- Learn X in Y Minutes
-
how long will it take to learn JS?
If you want a brief overview, go to https://learnxinyminutes.com/ and look for Javascript. I guess it should be roughly the time it took to learn C++ or possibly less, but JS has its own quirks. Often learning a second language is difficult as the first.
-
Anyone got good resources for experienced devs that don't know front end?
Very light compared to the other resources people have linked for you, but I love https://learnxinyminutes.com/
What are some alternatives?
CPython - The Python programming language
learn-x-by-doing-y - ๐ ๏ธ Learn a technology X by doing a project - Search engine of project-based learning
coreutils - upstream mirror
the-road-to-learn-react - ๐The Road to learn React: Your journey to master plain yet pragmatic React.js
llfio - P1031 low level file i/o and filesystem library for the C++ standard
materials - Bonus materials, exercises, and example projects for our Python tutorials
parallel-hashmap - A family of header-only, very fast and memory-friendly hashmap and btree containers.
You-Dont-Know-JS - A book series on JavaScript. @YDKJS on twitter.
securitytxt.org - Static website for security.txt.
tour_of_rust - A tour of rust's language features
leocad - A CAD application for creating virtual LEGO models
CppCoreGuidelines - The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++