Better HN
topnewbestaskshowjobs
Log inSign up

mrLSD-dev

98 karma · joined Jul 28, 2023 (3y ago) · 23 submissions

Professional Engineer, developer. https://github.com/mrLSD Ph.D. of Philosophy
Submissions

1.

F# RISC-V v0.6.0 released(github.com ↗)

4 points · by mrLSD-dev · 5mo ago · discuss

2.

Formal Verification of a Token Sale Launchpad: A Compositional Approach in Dafny(arxiv.org ↗)

1 points · by mrLSD-dev · 1y ago · discuss

comment 1y ago · link · parent

Swift EVM supports any build target, including Windows.

4.

Swift EVM (Ethereum Virtual Machine) new release v0.5.13(github.com ↗)

2 points · by mrLSD-dev · 1y ago · 3 comments

5.

Aurora EVM rust library: Cancun hard fork release(github.com ↗)

1 points · by mrLSD-dev · 2y ago · discuss

6.

Custom Semantic Analyzer library written Rust lang(github.com ↗)

19 points · by mrLSD-dev · 2y ago · discuss

comment 3y ago · link · parent

Research project, rust library for creating subset of compilers and programming languages

8.

Rust library semantic-analyzer-rs for creating subset of compilers(github.com ↗)

2 points · by mrLSD-dev · 3y ago · 1 comment

comment 3y ago · link · parent

Just out of curiosity, what about that: https://people.csail.mit.edu/bthom/riscv-spec.pdf

comment 3y ago · link · parent

I completely agree. And I specifically draw your attention to the fact that this is not a formal verification, which it would be reasonable to do: Coq, Isabellll, Agda, F* etc. However, Formal Specification. Those. representation of the specification in a formalized form. Haskell example: https://github.com/rsnikhil/Forvis_RISCV-ISA-Spec

In this case, the term "formal" refers to the formalization of the representation of the specification. And it seems to be already established.

comment 3y ago · link · parent

You can easily import and use specific functions for the decoder, or executor for specific ISA. Or even use the whole state machine. And this is represented by tests. Those. any single RISC-V architecture instruction, or an entire program. Because it can be used as a cpu emulator. Those. OS doesn't matter in this case. However, I draw your attention to the fact that this is only a processor, and not an emulation of the PC and its peripherals.

comment 3y ago · link · parent

It's possible to emulate. But not only. The main goal is to formalize the representations of the RISC-V instruction set (ISA), decoder, executor, and state machine. So it's more formal point of view for RISC-V ISA.

comment 3y ago · link · parent

unfortunately not, because it does not apply directly to ISA. However, the idea is interesting.

comment 3y ago · link · parent

The main competitor of Haskell, and also not the most popular language. However, the only way to popularize a language is to write in it. This project is trying to reveal the possibility of F#, and show the worthy side of F#,

comment 3y ago · link · parent

Due to the properties of F# as a functional language, using a pure representation of functions and a strong type system - in this case, this is a formalization of RISC-V ISA (instruction set). Since we don't have side effects for pure functions. As it has a State machine, one fun opportunity is to execute elf-bin files for it for RISC-V architecture.

I'm not sure what do you mean "compile programs", because it's not the compiler.

comment 3y ago · link · parent

Since F# is a functional language, it allows, using a purely functional approach and a system of strong types, pure functions, to formally verify the correctness of a particular ISA. The emulator is nothing more than a side effect.

comment 3y ago · link · parent

RISC-V CPU formal specification written on F#. Formalazation of RISC-V ISA architecture.

18.

F# RISC-V Instruction Set formal specification(github.com ↗)

134 points · by mrLSD-dev · 3y ago · 42 comments