Skip to content

Instantly share code, notes, and snippets.

View ShalokShalom's full-sized avatar
🐉
Garuda

ShalokShalom ShalokShalom

🐉
Garuda
View GitHub Profile
glewinfo
---------------------------
GLEW Extension Info
---------------------------
GLEW version 2.2.0
Running on a AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.63, 6.15.9-zen1-1-zen) from AMD
OpenGL version 4.6 (Compatibility Profile) Mesa 25.1.7-arch1.1 is supported
GL_VERSION_1_1: OK
@ShalokShalom
ShalokShalom / dot.net
Created July 24, 2025 23:38
All dotnet languages
This is a list of all dotnet languages that I could find

Schrödingers error handling

The Problem: The ceremony of unwrapping errors by hand

In common error handling systems like Swift's options or Go's error tuples,
the types that are used to represent missing data or potential errors, are just passive containers.

The standard operators like + for addition, or > for comparison, don't know how to work with them. This forces the programmer into a constant, repetitive ceremony when error handling;

To change Value<'a> to Value<'v> in the return type, you need to ensure that:

  1. The struct has a lifetime parameter 'v: The struct implementing this method must be defined with a lifetime 'v, e.g., struct MyStruct<'v> { ... }.

  2. 'v outlives 'a: The lifetime 'v of the Values must outlive the reference lifetime 'a (i.e., 'v: 'a). This ensures the Values remain valid for the duration of the returned slice.

Here's the corrected signature if your struct is MyStruct<'v>:

impl&lt;'v&gt; MyStruct&lt;'v&gt; {
To change `Value<'a>` to `Value<'v>` in the return type, you need to ensure that:
1. **The struct has a lifetime parameter `'v`**: The struct implementing this method must be defined with a lifetime `'v`, e.g., `struct MyStruct<'v> { ... }`.
2. **`'v` outlives `'a`**: The lifetime `'v` of the `Value`s must outlive the reference lifetime `'a` (i.e., `'v: 'a`). This ensures the `Value`s remain valid for the duration of the returned slice.
Here's the corrected signature if your struct is `MyStruct<'v>`:
```rust
impl<'v> MyStruct<'v> {
Can I change this code:
```rust
pub fn peek_frame<'a>(&'a self) -> Option<&'a [Value<'a>]>
```
into​
```rust
pub fn peek_frame<'a>(&'a self) -> Option<&'a [Value<'v>]>
# python_julia_connector.py
import os
from juliacall import Main as jl
# from juliacall import JuliaError # To specifically catch Julia errors if needed
# --- Environment Management & Initialization ---
# You might need to configure JuliaCall if Julia is not in your PATH
# or if you want to use a specific Julia project environment.
# For example:
# from juliacall import JuliaCall # For more control
New features get merged into `development`
New corrections get merged into `release`
Every new merge creates a new version.
A release has the versioning 2024.06.12-1
Binaries are called release-2024.06.12-1 and
development-2025.07.23-2
homoiconic transpiler toolchain
@ShalokShalom
ShalokShalom / gist:335c7aafd8a93b0e0c65cb6ff86b418d
Created February 19, 2025 00:03
The transparency of programming
Semantic transparency
Examples:
-- Multiple dispatch - ECS
-- Lambda principle - Lisp interpreter
An implementation can match the semantics of the architecture of the underlying system.
The tool ideally matches the product.