Skip to content

Instantly share code, notes, and snippets.

View ulysses4ever's full-sized avatar
🐢

Artem Pelenitsyn ulysses4ever

🐢
View GitHub Profile

Getting started

Here's a simple and complete benchmark, measuring the performance of the ever-ridiculous fib function.

import Criterion.Main

-- The function we're benchmarking.
fib m | m < 0 = error "negative!"

Suggestions for Improvement

  1. Add a Short Intro/Overview

    Begin with a short summary paragraph highlighting the key themes (e.g., “This release brings support for Windows AArch64, improvements to the REPL workflow, and several bug fixes and user experience enhancements. Some breaking changes require action—see the migration guide below.”).

  2. Consistent Section Naming and Formatting

    Use consistent headers: Sometimes “changelog and release notes,” other times just “changelog.” For user-friendliness, consider “Breaking Changes,” “New Features,” “Improvements,” and “Bug Fixes” as headings, or similar.

❯ /run/current-system/sw/bin/curl --config - 'https://hackage.haskell.org/package/ale
x-meta-0.3.0.14/candidate/docs' --request PUT --data-binary '@/home/artem/tmp/BNFC-me
ta/dist-newstyle/alex-meta-0.3.0.14-docs.tar.gz' --write-out '%{http_code}' --user-ag
ent 'cabal-install/3.15.0.0 (linux; x86_64)' --silent --show-error --location --heade
r 'Accept: text/plain' --header 'Content-Type: application/x-tar' --header 'Content-E
ncoding: gzip' -v
--anyauth
--user ArtemPelenitsyn:<my password>
* Host hackage.haskell.org:443 was resolved.
* IPv6: (none)
@ulysses4ever
ulysses4ever / gist:881571e08f0fff4f8dc4d63880d4e52f
Last active September 9, 2024 01:37
changelog-d warnings for Cabal-3.14
- https://github.com/haskell/cabal/pull/9466
- https://github.com/haskell/cabal/pull/9468
- https://github.com/haskell/cabal/pull/9505
- https://github.com/haskell/cabal/pull/9518
- https://github.com/haskell/cabal/pull/9565
- https://github.com/haskell/cabal/pull/9578
- https://github.com/haskell/cabal/pull/9583
- https://github.com/haskell/cabal/pull/9610
- https://github.com/haskell/cabal/pull/9671
- https://github.com/haskell/cabal/pull/9701
@ulysses4ever
ulysses4ever / newlfm.cls
Last active September 13, 2022 21:13
Patched newflm.sty that works in 2022
%%
%% This is file `newlfm.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% newlfm.dtx (with options: `package')
%%
%% \iffalse meta-comment
%% \CharacterTable
artem in prl-julia in ~/Temp/pandoc-2.19.2 took 18m52s
❯ dr-cabal profile --input=dr-cabal-debug.json 0 (18:52.487) < 21:47:28
Legend
▇ Downloading
▇ Starting
▇ Building
▇ Haddock
▇ Installing
Summary
@ulysses4ever
ulysses4ever / vpn.md
Last active August 12, 2024 13:48
О VPN

FAQ

  • Бесплатный VPN это OK? VPN бывают платные и бесплатные. Платные обычно ОК (мошенники бывают в любом бизнесе, конечно).

    Бесплатные в ряде случаев не ОК: они могут питаться вашими данными (продавать их третьим лицам) или того хуже майнить биткоин (не уверен, что кто-то это реально делает, но вдруг).

❯ cabal clean && cabal build clc-stackage --with-compiler=/home/artem/data/ghc/remove-st-fail/_build/stage1/bin/ghc
Resolving dependencies...
Build profile: -w ghc-9.0.1 -O1
In order, the following will be built (use -v for more details):
- OpenGLRaw-3.3.4.1 (lib) (requires build)
- bindings-GLFW-3.3.2.0 (lib) (requires build)
- bson-0.4.0.1 (lib) (requires build)
- double-conversion-2.0.2.0 (lib) (first run)
- fgl-5.7.0.3 (lib) (first run)
- justified-containers-0.3.0.0 (lib) (requires build)
waymonad-L-as on  master via ❄️ impure (ghc-shell-for-packages-0)
❯ cabal repl
Resolving dependencies...
Build profile: -w ghc-8.10.4 -O1
In order, the following will be built (use -v for more details):
- hayland-0.1.1.0 (lib) (first run)
- hsc2hs-0.68.7 (exe:hsc2hs) (requires build)
- hsroots-0.1.0.0 (lib) (first run)
- network-3.1.2.1 (lib:network) (requires download & build)
- waymonad-scanner-0.1.0.0 (lib) (first run)
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
let
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0