Based on Evan You's methodology: https://github.com/yyx990803/vue-svelte-size-analysis
Vue | Vue (SSR) | Svelte | Svelte (SSR) | Solid | Solid (SSR) | |
---|---|---|---|---|---|---|
Source | 3.93kb | - | 3.31kb | - | 4.98kb | - |
Compiled w/o imports (min) | 2.73kb | - | 5.01kb (183.52%) | 6.59kb (241.39%) | 3.68kb (134.805) | 3.96kb (145.05%) |
Compiled w/o imports (min+gz) | 1.25kb | - | 2.13kb (170.40%) | 2.68kb (214.40%) | 1.46kb (116.80%) | 1.57kb (125.60%) |
Compiled w/o imports (min+brotli) | 1.10kb | - | 1.88kb (170.91%) | 2.33kb (211.82%) | 1.26kb (114.55%) | 1.32kb (120.00%) |
A lot of Kotlin features can be traced back to functional programming languages, eg
- Heavy use of immutability-by-default and map, filter etc functions
- Type inference
- Data classes (which enable pattern matching)
- Null safety and dealing with the absence of values
However, Kotlin is missing many incredibly useful data types that are ubiquitous in functional programming languages, eg Either, Try etc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://blog.isquaredsoftware.com/presentations/react-redux-ts-intro-2020-12/#/36 for slides | |
// My basic render function structure: | |
function RenderLogicExample({ | |
someBoolean, // 1) Destructure values from `props` object | |
someList, | |
}) { | |
// 2) Declare state values | |
const [a, setA] = useState(0); | |
const [b, setB] = useState(0); |