Skip to content

Instantly share code, notes, and snippets.

Avatar

J Wylie Кулик kulicuu

View GitHub Profile
@kulicuu
kulicuu / cargo.toml
Last active Jun 26, 2022
parsing BulkString in RespValue of Actix-Redis
View cargo.toml
[package]
name = "actix_redis_cli_000"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bytes = "1.0"
actix = "0.13.0"
@kulicuu
kulicuu / Terebinth__Update__May__21.md
Last active May 21, 2022
Re-iterating Terebinth enterprise proposal
View Terebinth__Update__May__21.md

Terebinth : Custom Computational Simulation

(An Enterprise Proposal, something I've been kicking around awhile, now re-iterating)

About me in this story...

I grew up in the 80s, largely in Michigan, athletic culture, laid back. We got a PC XT with monochrome (amber and black) monitor. I played Falcon. Have been obsessed with simulation since then. Really it's the only thing about computers that really excited me. Contrarywise, I thought and think AI is bullshit and hype, obscuring some genuine utility in the neural nets, viewed as maps of data terrain. Roger Penrose nailed that one, also Noam Chomksy in "Language and Thought" (Anshen Lecture Series) makes similar, and powerful in generality arguments. I was never into the web hypes, other than the utopian library of alexandria type ideas -- I remain committed to that -- I'm talking about the hijacking for corporate commmercial, oligarchical, society-parasitizing/predating interests. Commerce is good of course, and internet has been great for t

@kulicuu
kulicuu / may21_thoughts_on_combined_arms.md
Last active May 21, 2022
Recent Thoughts on Combined Arms
View may21_thoughts_on_combined_arms.md

(amateur)

Some thoughts about returning to thinking about combined-arms warfare

Dug in, dug out, blown away with the wind...

Qu: Why is it "combined"?

@kulicuu
kulicuu / keystone_the_plumbing_revolution.md
Last active May 24, 2022
Keystone : The Plumbing Revolution
View keystone_the_plumbing_revolution.md

Keystone : The Plumbing Revolution

(an idea from 2014ish, need to go through some multiple passes with the brainstorming thing)

Keystone: [ call it this or something else? This.]

The Plumbing Revolution

@kulicuu
kulicuu / March_18.rs
Last active Mar 18, 2022
Rust and Vulkan GPU rendering, vertex-buffer mapping, indexed-drawing, depth-buffering...
View March_18.rs
// Vulkan Scratch Routine 2400 ----------------- -- -- -- ---- -
use erupt::{
cstr,
utils::{self, surface},
vk, DeviceLoader, EntryLoader, InstanceLoader,
vk::{Device, MemoryMapFlags},
};
use cgmath::{Deg, Rad, Matrix4, Point3, Vector3, Vector4};
use std::{
ffi::{c_void, CStr, CString},
View fourier_t.rs
use num_complex::Complex64;
use std::f64::consts::*;
pub fn ft_slow (
a: &Vec<Complex64>,
n: usize,
is: i8,
) -> Vec<Complex64>
{
@kulicuu
kulicuu / Instructions.md
Last active Nov 27, 2021
Byte parsing in C/C++
View Instructions.md

You have been given a data file containing a list of known non-local metaparticles.

The format of the data file is an array of interleaved structures representing the following data for each record:

  • a 32-bit unsigned integer (4 bytes)
  • 6 bytes of ASCII string, null-terminated
  • a 64-bit floating point number (8 bytes)
@kulicuu
kulicuu / main.rs
Last active Nov 17, 2021
Erupt Vulkan Scratchpad
View main.rs
use memoffset::offset_of;
use simple_logger::SimpleLogger;
use winit::{
event::{
Event, KeyboardInput, WindowEvent,
ElementState, StartCause, VirtualKeyCode,
DeviceEvent,
@kulicuu
kulicuu / gilded_rose_new.js
Created Nov 8, 2021
Assessment Kata from GildedRose Refactoring
View gilded_rose_new.js
const itemQualityFunctionIndex = {
"Aged Brie": function(item) {
item.quality++;
return item
},
"Backstage passes": function (item) {
if (item.sellIn <= 10 && item.sellIn > 5) {
item.quality += 2;
@kulicuu
kulicuu / main.rs
Last active Nov 4, 2021
map_memory segmentation fault in Vulkan
View main.rs
use memoffset::offset_of;
use simple_logger::SimpleLogger;
use winit::{
event::{
Event, KeyboardInput, WindowEvent,
ElementState, StartCause, VirtualKeyCode
},