name: ponytails description: > Lazy senior dev mode: the smallest change that fully solves the task, and a reply a busy human understands in one read. Use on any coding task (writing, fixing, refactoring, reviewing, choosing dependencies) and when the user says "ponytails", "be lazy", "simplest solution", "yagni", or complains about over-engineering or bloat. Levels: lite, full (default), ultra. argument-hint: "[lite|full|ultra|off]" license: MIT
| name | perf-expert |
|---|---|
| description | Deep dive into .NET performance bottlenecks. |
You are the Perf-Expert. When asked to write C# code:
- Code for the actual CPU and Memory - not for the "best-practice", "methodology" or "tech-stack":
- use data-oriented / array-based programming technics
- flat arrays/indexes/intrusive data-structures instead of pointers
- adhere to cache locality/hierarchy
- avoid dependency chains/stalls and enable ILP
| name | general-dev |
|---|---|
| description | First-principles software engineering focusing on semantic compression, directness, professionalism. |
- Struggle for the best solution (no poc, mvp, hello-world, "in prod is obviously different/more complex" - no). We are professionals btw!
- Less code and no-code is better then more code - reassess, compact, simplify, inline and compress.
- Comment as a fellow technician - not a wordy consultant/marketing person - focus on what and why it does, inout to output transofrmation, surface usage and dependencies
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
| using System; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| using System.Collections.Generic; | |
| using System.Threading; | |
| public enum NodeType : byte { Sentinel, TwoNode, ThreeNode } | |
| public readonly record struct NodeIdx(int Index, int Gen) { | |
| [MethodImpl(MethodImplOptions.AggressiveInlining)] |
- data-class
- data-see
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
| // source: https://github.com/dotnet/runtime/discussions/115627#discussioncomment-14092390 | |
| // Thread.Sleep(0); // 4750 cede control to any thread of equal priority | |
| // spinWait.SpinOnce(); // 4100 periodically yields (default is 10 iterations) | |
| // Thread.Sleep(1); // 3900 cede control to any thread of OS choice | |
| // Thread.Yield(); // 3650 cede control to any thread on the same core | |
| // await Task.Delay(0); // 3600 creates and waits on a system timer | |
| // do nothing // 3600 burn down a CPU core | |
| // Thread.SpinWait(1); // 3600 duration-limited Yield | |
| // await Task.Yield(); // 3250 suspend task indefinitely (scheduler control) |
Unrordered:
-
Web Frontend JS, SPA, MPA, CQRS/Reactivity == data-star.dev
Details
- 30 min talk - https://www.youtube.com/watch?v=0K71AyAF6E4
- v1 release allows starting from text/html, text/json and go to SSE - https://www.youtube.com/watch?v=u0I7f6NMZvk
-
Browser Server interaction == SSE server sent events
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
| // Post: https://x.com/VictorTaelin/status/1854326873590792276 | |
| // Note: The atomics must be kept. | |
| // Note: This will segfault on non-Apple devices due to upfront mallocs.#include <stdint.h> | |
| #include <stdint.h> | |
| #include <stdatomic.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <time.h> |
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
| #!/bin/sh | |
| # rename-pictures.sh | |
| # Author: Justine Tunney <jtunney@gmail.com> | |
| # License: Apache 2.0 | |
| # | |
| # This shell script can be used to ensure all the images in a folder | |
| # have good descriptive filenames that are written in English. It's | |
| # based on the Mistral 7b and LLaVA v1.5 models. | |
| # | |
| # For example, the following command: |
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
| <PropertyGroup> | |
| <TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks> | |
| <TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net48;$(TargetFrameworks)</TargetFrameworks> | |
| <IsPackable>false</IsPackable> | |
| <DefineConstants Condition="'$(TargetFramework)' != 'net48'">$(DefineConstants);READONLYSPAN</DefineConstants> | |
| </PropertyGroup> |
NewerOlder