Pinned Tweet
というわけで今度の #技術書典7 に参加させていただきます。よろしくおねがいします。
#技術書典 初出展です〜。「アッカーマン関数の計算過程を表示する(その↑)」に加え、@automatonixに執筆いただいた「DDRの足運びを最適化する」の二本立て!ジャンルは謎ですが、巨大なデータや数が好き、Rustに入門したい、競プロ、DDRをやっている人におすすめ!?techbookfest.org/event/tbf07…
maton retweeted
ソフトウェアエンジニアのよくある苦労21個に名前を付けて、それぞれに、症状を表す会話文と短い解説を付けた記事です
mtx2s.hatenablog.com/entry/2…
maton retweeted
Haskell で作られたスプレッドシートエンジン
セルの計算に関数型の独自言語が使える
現在はVSCodeの拡張機能として実装されている👀
b4er.github.io/recalc/
maton retweeted
『代数的エフェクトで確率的プログラミングを実装する』
勉強会で発表した資料を公開しました〜
docswell.com/s/lotz/KEX89G-2…
maton retweeted
JSONパーサーをHaskellでゼロから作る話👀
まずQuickCheckによるテストの実装から始まる。パーサーも
newtype Parser i o = Parser { runParser :: i -> Maybe (i, o) }
から自作するのでモナディックパーサーの勉強にもなりそう。とにかく図と説明が豊富で分かりやすい
abhinavsarkar.net/posts/json…
maton retweeted
書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!書きました!みて
zenn.dev/anqou/articles/fc75…
maton retweeted
Anyone has opinions about arxiv.org/pdf/2402.15332.pdf?
Figure 1 seems related to colah.github.io/posts/2015-0… and arxiv.org/pdf/1702.02181.pdf
maton retweeted
Applicativeとモナドの中間にあるSelective Applicative Functorの話が面白かった。Applicativeにもモナドにも表現できない機能を実装することができるので便利そう
youtube.com/watch?v=h3XEHRX4…
maton retweeted
1. スケール不変性
2. 全射性
3. 一貫性
この3つを同時に満たすクラスタリング手法は存在しないという定理の解説記事👀 数学的な証明も載っていてわかりやすい!
ちょうど Kleinberg の不可能性定理について調べていたので非常にありがたい🙏
qiita.com/snuffkin/items/a81… #Qiita @snuffkin より
maton retweeted
λλλ APLAS 2024 will be held in Kyoto, which is a beautiful city known for the sacred Mt. Lambda🔥 Details on the mountain: wwwfun.kurims.kyoto-u.ac.jp/… λλλ
maton retweeted
秒で答えが返ってくる対話型AIと話題の Groq
LPU(Language Processing Unit) という専用のチップが使われてるけど、その設計にHaskell製のコンパイラ(おそらくBluespec Compiler)が使われているという噂👀
teapawt.org/IntuitMachine/status/1…
Groq is a Radically Different kind of AI architecture
Among the new crop of AI chip startups, Groq stands out with a radically different approach centered around its compiler technology for optimizing a minimalist yet high-performance architecture. Groq's secret sauce is this compiler-first method that shuns complexity in favor of tailored efficiency.
At the heart of Groq’s architecture is an almost surprisingly bare-bones design that does away with unnecessary logic in favor of raw parallel throughput. The hardware itself is comparable to an ASIC – an application-specific integrated circuit finely tuned for machine learning. However, unlike a fixed-function ASIC, Groq leverages a custom compiler that can adapt and optimize across different models. It is this combination of a streamlined architecture and an intelligent compiler that sets Groq apart.
The key insight is that many AI chips stack components, like GPUs, that bring extraneous hardware and bloat. Groq returns to first principles, recognizing that machine learning workloads are about massive parallelism over simple data types and operations. By eliminating generic hardware and even concepts like locality, the design maximizes throughput and efficiency.
This is enabled by Groq’s compiler that sits between software frameworks like TensorFlow and the hardware. The compiler analyzes and optimizes neural network graphs, tailoring and mapping them to the underlying architecture for accelerated execution. It breaks computations into the smallest operations to unlock parallelism. The compiler also enables capabilities like batch size 1 inference that ensures all hardware is usefully leveraged.
Critically, Groq built its compiler before even finalizing the hardware design. The software insights directly informed the architecture. This co-design process allowed inference-specific optimization without legacy limitations. The compiler also provides deterministic guarantees of runtimes, enabling reliable scaling.
Together, the Groq compiler and architecture form a streamlined, robust engine for machine learning inference. The innovative compiler-first methodology allows custom optimization that balances flexibility with performance. Rather than chasing complexity, Groq realizes less can be more when software and hardware align – a compelling recipe as AI workloads continue evolving.
maton retweeted
ブラウザ上で動くHaskellを題材にしたゲーム
右側の関数を使って左上の zeroToHero の型に合う関数を左下の Code Editor に実装していく
これは型パズルの良い練習になりそう💡
zerotohero.fly.dev/
人やGPTに相談して、今回のイベをソロでやったときに達成できる確率は84.8%くらいになることがわかりました(完)
gist.github.com/matonix/0feb…
34
maton retweeted
「Japanese Stable LM Beta」シリーズをリリースしました!!Llama-2ベースの日本語言語モデルで、一番の見どころは何と言っても70Bパラメータのモデルですかね。フルパラメータで100Bトークンの継続事前学習+SFTをしてます。流石にこのサイズだと結構賢い。
ja.stability.ai/blog/japanes…
maton retweeted
nginxでHaskellが動くぞ。async実行も可能。わいわい / “GitHub - lyokha/nginx-haskell-module: Nginx module for binding Haskell code in configuration files for great good!” htn.to/2kDc9rhMha
maton retweeted
木構造の全ての要素をその最小値で置き換える処理は
- 最小値を求める
- 要素を置き換える
と2回の走査で実装できるが「巡回プログラミング」というテクニックを使うと1回の走査で済む
これはトレースを取る関数
trace :: ((a, b) -> (c, b)) -> (a, c)
として抽象化できる
cs.umd.edu/class/spring2019/…






























