scc
cloc
Our great sponsors
scc | cloc | |
---|---|---|
18 | 28 | |
5,918 | 18,395 | |
- | - | |
8.2 | 8.7 | |
7 days ago | 29 days ago | |
Go | Perl | |
MIT License | GNU General Public License v3.0 only |
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.
scc
-
Essential Command Line Tools for Developers
View on GitHub
-
Ask HN: Programs that saved you 100 hours? (2022 edition)
Going to say my own https://github.com/boyter/scc/ which I have used to turn down projects of "Oh we just need to do X"
It allows me to evaluate the code-base quickly and see where potential issues are, and find hidden complexity in the code. I have said no a lot due to it. The only reason it exists was because I got caught out from another project, which wasted months of my time.
Otherwise IntelliJ and the JetBrains IDE's in general.
-
Building a custom code search index in Go for searchcode.com
Very cool to see this here, Ben! It was fun beating the ins and outs of your work on this in the TZ discord.
Also, off-topic but as you know, I recently tried out your scc tool and am eagerly awaiting its support for Elixir templates (.eex, .heex)!
-
[media] Onefetch v2.13 is typically 2x faster and now supports ~100 programming languages
I believe tokei is the best rust option as of now, but despite my burning passion for rust I've switched to using scc instead as I find it faster and more convenient. Not really an option for you if you're trying to bake line counting into the binary, obviously.
-
Incremental Parsing in Go
I've seen some real world example where Go was as fast or faster than Rust for CPU / io intensive task.
Go is a fast language even with a GC.
- Goal: Pass all 4259065 tests in sqllogictest in 1 week
-
Large project uses Rust backend. My backend developer left. How hard is it for me to learn Rust and take over for him.
I don't trust your qualitative "LARGE" for the project. I would recommend you pass your project through something like a software metrics tool https://github.com/boyter/scc to better measure what you're up against in terms of Flutter/Dart AND Rust code base.
- A fast accurate code counter with complexity calculations and COCOMO estimates
- Fd: A simple, fast and user-friendly alternative to 'find'
-
Introducing next generation of no-code application builder with fullstack codebase export. Offering free application build service and 50% off for limited time.
BTW, for technically inclined, here is scc output for an exported inventory tracker app (you can see actual app build @ https://www.bappaz.com/video or step by step process to build the app @ https://www.bappaz.com/learn )
cloc
- cloc counts blank lines, comment lines, and physical lines of source code in many programming languages
-
Underrated tools & practices
Cloc - https://github.com/AlDanial/cloc
-
Show HN: Cloc as a Service
and get the results on the cli.
Let me know what you think. :)
-
erdtree: A modern, multi-threaded, and ️🌈aesthetic️🌈 alternative to tree and du - v1.7.0 release ️
Awesome stuff, thank you! I‘d love some flags/options for cloc integration if it can be detected, maybe a summary of the top N languages for directories (67% Rust, 13% Html, 9% Bash) or something. Just a suggestion/idea. Gonna install it anyway, it‘s shiny!
- How can I see what % of my project is written in Kotlin vs Java?
-
I created a Blazor server-side application that has processed its first $1k in sales volume
The solution I am using is currently comprised of 145 projects, 141k+ lines of C#, and 37k+ lines of Razor, courtesy of cloc:
-
Can anyone give me an idea of the size ration between a high level language and assembly code?
Just out of curiosity, I downloaded the latest version of GNU coreutils and compared the line count between a few source files and the resulting disassembled object files (using cloc to exclude blank lines and comments). It looks like the ratio is very approximately 2 assembly instructions per line of C code. Obviously, that will depend a lot on what the code is doing and the coding style.
-
Take More Screenshots
When I started making a game [0] last year, first thing I did was write a little Unity script that takes a screenshot of the opening scene, counts current lines of code using CLOC [1] (for fun, not as a true measure of anything), and occasionally renders it all out to an image file.
With that I'm able to create some pretty fun time lapses of progress. I've been doing this at an arbitrary milestone, whenever my Luau [2] LOC surpasses C++ by another factor. This post reminded me I'm overdue for another now that Luau > 3x C++ LOC.
I find it rewarding to look back at my progress. I'll share in case it's interesting for you too [3].
[0] https://store.steampowered.com/app/2168330/Helmscape/
[1] https://github.com/AlDanial/cloc
[3] https://twitter.com/kineticpoet/status/1619508466212831232
-
Is there any way to get an average of number of lines added/removed (basically how large a change is) in user commits
My manager just asked me about this a few days ago (sigh) cloc is good for this - you can pass it a hash or two hashes and it will give you counts accordingly. https://github.com/AlDanial/cloc
-
350 Stars: A Categorization and Mega-Guide
Finally, since I'm limited on the character-length of this post, I'll post an individual comment for each year with a table of data. The "All Rank" column will rank the problem by difficulty (measured by leaderboard close time) across all years, with 1 being longest. The "Yr Rank" column will be similar, but ranked only within that year. The "P1 LOC" and "P2 LOC" columns show the numbers of lines of code in my solutions for each part as measured by cloc (each part is stand-alone so there will be some duplication, especially for Intcode). Other columns should be self-explanatory.
What are some alternatives?
tokei-pie - Render tokei's output to interactive sunburst chart.
tokei - Count your code, quickly.
croc - Easily and securely send things from one computer to another :crocodile: :package:
gui - Bitcoin Core GUI staging repository
Seaweed File System - SeaweedFS is a fast distributed storage system for blobs, objects, files, and data lake, for billions of files! Blob store has O(1) disk seek, cloud tiering. Filer supports Cloud Drive, cross-DC active-active replication, Kubernetes, POSIX FUSE mount, S3 API, S3 Gateway, Hadoop, WebDAV, encryption, Erasure Coding. [Moved to: https://github.com/seaweedfs/seaweedfs]
kakoune-python-bridge - Send selections to python while keeping history of previous commands
Gor - GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
sbcl - Mirror of Steel Bank Common Lisp (SBCL)'s official repository
Hugo - The world’s fastest framework for building websites.
termux-create-package - Python script to create Termux packages easily.
Circuit - Circuit: Dynamic cloud orchestration http://gocircuit.org
bocker - Docker implemented in around 100 lines of bash