
Sonneko@本気コンパイラ開発
77 posts

Sonneko@本気コンパイラ開発
@_sonneko
High School Programmer | Passionate about low-level systems and PL development with #Rust 高3 #プログラマ |コンパイラ開発者|#科甲15th #科学の甲子園 大阪代表|#Aoristos 所属|プログラミング言語自作が趣味




日本には『四捨五入』という四字熟語があるせいで、「XX.5 以上を切り上げて、XX.5 未満を切り捨てる」という処理を日本のプログラマさんは書きがちです。 しかしそうすると、切り上げになる頻度が増えてよくないため、世界的には「XX.5 は近い偶数整数に丸める」ことが一般的らしいですね。




The Swiss Army Knife of Power Supplies: Why the LM317 Still Rules In a world of complex power management ICs, sometimes the classic solutions are still the best. The LM317 adjustable voltage regulator has been a staple on engineer workbenches for decades - and for good reason. Whether you're building a variable lab supply, a constant current source for LEDs, or local on-card regulation, this 3-terminal wonder is as versatile as it is reliable. Based on information on my website , here is why the LM317 should still be in your component drawer: Key Features • Wide Output Range: Adjusts from 1.2V all the way up to 37V. • High Current Capability: Capable of delivering over 1.5A with proper heatsinking. • Floating Regulator: Because it doesn't have a dedicated ground pin, it can be used in high-voltage applications as long as the input-to-output differential is maintained. • Robust Protection: Built-in current limiting and thermal overload protection make it incredibly "forgiving" during the prototyping phase. Pro-Tips for a Stable Circuit To get the best performance out of your LM317 design, keep these practical tips in mind: 1. Capacitors are NOT optional: Use a 0.1µF ceramic on the input to handle line impedance and a 1µF tantalum on the output to ensure transient stability. 2. The "Protection Diode" Trick: If you’re using large output capacitors (over 25µF), add a protection diode from output to input. This prevents the capacitor from discharging back through the IC if the input is shorted. 3. Layout Matters: Keep your programming resistors as close to the IC terminals as possible to minimize voltage drops that can degrade regulation. 4. Heatsink Connection: Remember that on the TO-220 package, the metal tab is internally connected to the Output pin, not ground! Always use an insulator kit if mounting to a common chassis. The LM317 is a testament to the idea that good analog design is timeless. It’s cheap, widely available, and virtually impossible to make obsolete. For more information check out my website - link in the comments. Are you still using the LM317 in your modern designs, or have you fully switched to LDOs and Switchers? Let’s talk shop in the comments! 👇 #ElectronicsEngineering #AnalogDesign #PowerSupply #LM317 #ElectricalEngineering #MakerMovement #CircuitDesign #electronicsnotes


『ゼロから始めるLean言語入門』井上亜星 3520円(ラムダノート) 動作するプログラムとして自然数と整数を構築することで、数学とソフトウェアがLeanによってどう結び付けられるかを確かめながら、Leanによりソフトウェアを開発するための基礎を身に付けます。 数学の形式化に興味がある数学者はもちろん、数学に挑戦したいプログラマーや、計算機科学の抽象概念を手触りで確かめたいエンジニアにも最適な一冊。 書泉オンラインショップ⇩ x.gd/09kBY

親の許可なしでサーバー買って 欲望のままにマイクラサーバーやって ホームページ作るためにhtmlコピペ したのが始まりなんて言えない

My dear front-end developers (and anyone who’s interested in the future of interfaces): I have crawled through depths of hell to bring you, for the foreseeable years, one of the more important foundational pieces of UI engineering (if not in implementation then certainly at least in concept): Fast, accurate and comprehensive userland text measurement algorithm in pure TypeScript, usable for laying out entire web pages without CSS, bypassing DOM measurements and reflow







