Skip to content

Instantly share code, notes, and snippets.

View LePichu's full-sized avatar
๐Ÿ˜พ
Certified Crashout.

Ishat Gupta LePichu

๐Ÿ˜พ
Certified Crashout.
View GitHub Profile
lepichudoesdev@ohiodeck in mica via ๐Ÿฆ€ in 0.1s !!!
$> mica ./coupon/mica-coupon.xml --out ./coupon/out/ --validate
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ property โ”‚ value                    โ”‚ detail                                            โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚    board โ”‚ mica-coupon              โ”‚ schema ok                                         โ”‚
โ”‚   source โ”‚ ./coupon/mica-coupon.xml โ”‚                                                   โ”‚
โ”‚   output โ”‚ ./coupon/out/            โ”‚                                                   โ”‚
โ”‚ size โ”‚ 70.00 x 60.00 mm โ”‚ 
lepichudoesdev@ohiodeck in Downloads in 4.4s !!!
$> mica ./Smdbb.xml --out ./gurkenpcb/ --validate
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ property โ”‚ value              โ”‚ detail                                            โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚    board โ”‚ Smdbb              โ”‚ schema ok                                         โ”‚
โ”‚   source โ”‚ ./Smdbb.xml        โ”‚                                                   โ”‚
โ”‚   output โ”‚ ./gurkenpcb/       โ”‚                                                   โ”‚
โ”‚     size โ”‚ 142.00 x 142.00 mm โ”‚                                                   โ”‚
โ”‚ layers 
lepichudoesdev@ohiodeck in lepichudoesdev in 0.2s !!!
$> # This is native Rust                                            
 
lepichudoesdev@ohiodeck in lepichudoesdev in 0.0s !!!
$> ~/Downloads/bombardier -c 10 -n 1000 http://localhost:3000/health
Bombarding http://localhost:3000/health with 1000 request(s) using 10 connection(s)
 1000 / 1000 [===============================================================================] 100.00% 4947/s 0s
Done!
Statistics        Avg      Stdev        Max

I have been thinking a lot about how language mechanisms intrinsically start off as language tools at some level, for this instance I would like to discuss Rust's Borrow Checker in-tandem with Clippy; the Linter for Rust projects. A Linter, traditionally, is defined as a collection of "lints" or rules (examples: unused variables, missing method implementations, missing await in asynchronous blocks, etc.) which check for specific patterns across a given set of code, it may or may not take program state and type-checking into account, the end goal of a linter is to catch supposedly bad code ahead of time, much like something like a type-system trying to catch for type-inconsistencies or other type-safety failures. Clippy has more than 800 linting rules out of the box.

The Borrow Checker is an integral part of the Rust language which ensures memory safety by the system of borrowing, only one variable can truly own something at a given time and the others must use said something using a reference. It (th

lepichudoesdev@ohiodeck in chai_deps_test via ๐Ÿฆ€ on master
$> ./Invoke-Benchmark.ps1; ./Invoke-BenchmarkWarm.ps1
๐Ÿš€ Starting benchmark suite for 32 packages...
============================================

๐Ÿ“ฆ Package 1/32


๐Ÿ” Benchmark: com.google.code.gson:gson:2.10.1
=====================================
lepichudoesdev@ohiodeck in chai_deps_test via ๐Ÿฆ€ on master in 0.0s !!!
$> ./Invoke-Benchmark.ps1
๐Ÿš€ Starting benchmark suite for 12 packages...
============================================

๐Ÿ“ฆ Package 1/12


๐Ÿ” Benchmark: com.google.code.gson:gson:2.10.1
=====================================
lepichudoesdev@ohiodeck in chai_deps_test via ๐Ÿฆ€ on master in 19.8s !!!
$> ./Invoke-Benchmark.ps1                                                                                                                                      ๐Ÿš€ Starting benchmark suite for 12 packages...
============================================
๐Ÿ“ฆ Package 1/12


๐Ÿ” Benchmark: com.google.code.gson:gson:2.10.1
=====================================

๐Ÿงน Clearing all caches...
lepichudoesdev@ohiodeck in chai_deps_test via ๐Ÿฆ€ on master in 0.0s !!!
$> ./Invoke-Benchmark.ps1
๐Ÿš€ Starting benchmark suite for 12 packages...
============================================
๐Ÿ“ฆ Package 1/12
๐Ÿ” Benchmark: com.google.code.gson:gson:2.10.1
=====================================
lepichudoesdev@ohiodeck in Dump in 14.5s !!!
$> ./Test-Maven.ps1
Processing com.google.code.gson:gson:2.10.1...
Processing org.apache.commons:commons-lang3:3.14.0...
Processing com.squareup.okhttp3:okhttp:4.12.0...
Processing io.reactivex.rxjava3:rxjava:3.1.8...
Processing com.google.guava:guava:33.0.0-jre...
Processing org.hibernate:hibernate-core:6.4.1.Final...
Processing io.quarkus:quarkus-core:3.6.4...
Processing io.micronaut:micronaut-core:4.2.3...
Set-PSReadLineOption -EditMode Windows
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -Colors @{ "Parameter" = $PSStyle.Foreground.FromRgb(127, 127, 127) }
Set-PSReadlineKeyHandler -Key ctrl+d -Function DeleteCharOrExit
Set-PSReadLineKeyHandler -Key ctrl+e -ScriptBlock {
[System.Console]::Clear()
$global:COLDBOOT = $true
[Microsoft.PowerShell.PSConsoleReadLine]::BeginningOfLine()
}