kasm alternatives and similar libraries
Based on the "Misc" category.
Alternatively, view kasm alternatives based on common mentions on social networks and blogs.
-
jclasslib
jclasslib bytecode editor is a tool that visualizes all aspects of compiled Java class files and the contained bytecode. -
kotlin-logging
Lightweight Multiplatform logging framework for Kotlin. A convenient and performant logging facade. -
kotlin-telegram-bot
๐ค A wrapper for the Telegram Bot API written in Kotlin -
kotlinx.atomicfu
The idiomatic way to use atomic operations in Kotlin -
tinylog
tinylog is a lightweight logging framework for Java, Kotlin, Scala, and Android -
lingua
The most accurate natural language detection library for Java and the JVM, suitable for long and short text alike -
Kotlift
Kotlift is the first source-to-source language transpiler from Kotlin to Swift -
kotlinx.reflect.lite
Lightweight library allowing to introspect basic stuff about Kotlin symbols -
Humanizer.jvm
Humanizer.jvm meets all your jvm needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities. -
actions-on-google-kotlin
Unofficial Actions on Google SDK for Kotlin and Java -
klutter
A mix of random small libraries for Kotlin, the smallest reside here until big enough for their own repository. -
solr-undertow
Solr / SolrCloud running in high performance server - tiny, fast startup, simple to configure, easy deployment without an application server. -
kassava
This library provides some useful kotlin extension functions for implementing toString(), hashCode() and equals() without all of the boilerplate. -
SimpleDNN
SimpleDNN is a machine learning lightweight open-source library written in Kotlin designed to support relevant neural network architectures in natural language processing tasks -
units-of-measure
Type-safe dimensional analysis and unit conversion in Kotlin. -
kotlin-futures
A collections of extension functions to make the JVM Future, CompletableFuture, ListenableFuture API more functional and Kotlin like. -
TLSLibrary
Simple TlsLibrary written in Kotlin - Provides DSL for creating TLS connections -
scientist
A kotlin library for refactoring code. Port of GitHub's scientist. -
kasechange
๐ซ๐๐ข๐ ฟ Multiplatform Kotlin library to convert strings between various case formats including Camel Case, Snake Case, Pascal Case and Kebab Case -
kjob
A lightweight coroutine based persistent job/cron scheduler written in Kotlin -
PrimeCalendar
PrimeCalendar provides all of the java.util.Calendar functionalities for Persian, Hijri, and ... dates. It is also possible to convert dates to each other. -
kotlin-pluralizer
:sunny: Kotlin extension to pluralize and singularize strings -
kase-format
Multiplatform kotlin string case conversion and detection library.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of kasm or a related project?
Popular Comparisons
README
Kasm
Kasm is a runtime assembler library for Kotlin. It allows to assemble and execute machine code at runtime.
Features
- x86-64 up to AVX2
- Allows save code execution, handling segmentation faults and zero divisions etc.
- Support for automatic CPU feature detection (see
CpuId
) - Contains a Kotlin DSL (see
Assembler
) - Supports disassembling (through Capstone)
- Full control over encoding (see
EncodingOptions
):- Encode with or without SIB (if possible)
- Force REX prefix
- Use long or short VEX prefix
- Set unused bits in Mod.RM/REX/VEX
- Legacy prefix order
Installation
$ git clone --recursive https://github.com/evoasm/kasm
The project does currently come without any build files. It is recommended that you import the project into IntelliJ IDEA.
Requirements
- Kotlin/JVM
- Capstone for disassembling (optional).
- POSIX-compliant OS (Linux and Mac OS X should both work).
- CMake (see below, optional)
If you want support for code execution and disassembling (through Capstone) you must build the corresponding native modules
$ cd kasm-native/lib
$ mkdir build
$ cd build
$ cmake ..
Shared libraries are output to kasm-native/lib
. If you get a UnsatisfiedLinkError
exception
add -Djava.library.path=../kasm-native/lib
to your VM options.
Examples
Assembler
val buffer = NativeBuffer(1024)
Assembler(buffer).emitStackFrame {
mov(RBX, 0)
mov(RAX, 0)
divRdxRax(RBX)
}
buffer.execute() // will throw kasm.ZeroDivisionException
Assembler(buffer).emitStackFrame {
mov(RBX, AddressExpression(0x0))
}
buffer.execute() // will throw kasm.SegmentationFaultException
Instruction
val buffer = NativeBuffer(1024)
// add eax, [ebx]
AddR32Rm32.encode(buffer, EAX, AddressExpression32(EBX))
// add [ebx], eax
AddRmR32.encode(buffer, AddressExpression32(EBX), EAX)
CpuId
println(CpuId.features) // [SEP, CLFSH, DS, ACPI, SSE, SSE2, SS, ...
EncodingOptions
AddRm32Imm32.encode(buffer, EAX, 0x10, options = EncodingOptions(rexX = 0x0, forceRex = true))
println(buffer.toByteString()) //40 81 C0 10 00 00 00
AddRm32Imm32.encode(buffer, EAX, 0x10, options = EncodingOptions(rexX = 0x1, forceRex = true))
println(buffer.toByteString()) //42 81 C0 10 00 00 00
License
*Note that all licence references and agreements mentioned in the kasm README section above
are relevant to that project's source code only.