Skip to content
TILens What matters today in tech v0.4.0
Theme
Topics - Languages
Calendar · DEC 2026
‹ Dec 2026 ›
  1. JAN
  2. FEB
  3. MAR
  1. APR
  2. MAY
  3. JUN
  1. JUL
  2. AUG
  3. SEP
  1. OCT
  2. NOV
  3. DEC
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Favorites (0)

News stream

News

🏗️ 1. WebGL2 GLSL 핵심 문법과 개념 정리

WebGL 보일러플레이트(HTML/JS)는 이미 구성되어 있다는 가정 하에, 셰이더 코드(vert.glsl, frag.glsl) 자체에서 알아야 하는 문법과 개념만 다룹니다. 기준 버전은 WebGL2에서 사용하는 GLSL ES 3.00(#version 300 es)입니다. 1. 셰이더 파이프라인 기본 구조 GPU 파이프라인에서 버텍스 셰이더는 정점 단위로, 프래그먼트 셰이더는 픽셀 단위로 동시에 실행됩니다. 버텍스 셰이더가 out으로 내보낸…

devto-javascript

Float to Int Conversion: Why Large Numbers Break

Quick Answer: Converting large floating-point numbers to integers is unpredictable across languages. While small decimals truncate their fractional parts cleanly, floats can represent magnitudes far exceeding fixed integer limits (like 10^20).…

devto-javascript

The Seventeen Ways a Wall Can Repeat

I have been building a series of pages where the computer generates the pattern: tin-glazed tiles painted by rule, cut tile and poured cement, heraldry, knotwork, a piece that breaks another piece, and last time brick in raking light and Granada's…

devto-javascript

4 KB of Text Was Holding 200 MB of Memory

kept: 200 strings, 3.9 KB of text heap: +200.0 MB That's the output of a small test, and the two lines should not be able to coexist. An array holds 200 short IDs, about 4 KB of characters. Forcing a full garbage collection doesn't help. The heap…

devto-javascript

A Fifth Object Shape Made the Same Loop Twice as Slow

Same loop, same array length, same field. One line changes between these two runs: how many kinds of object are in the array. 4 shapes: 1.51 ns per read 5 shapes: 3.31 ns per read The loop is one property read: function sum(items) { let total = 0;…

devto-javascript

Keeping Ten Times More Objects Made Garbage Collection Four Times Cheaper

keep 1,000,000 objects alive: 38 ms in GC keep 100,000 objects alive: 155 ms in GC Both runs allocate the same 100 million objects. The second keeps a tenth as many alive at a time, and it spends four times as long collecting garbage. Picture a Node…

devto-javascript

1,000 Cards, 1,000 Layouts, and requestAnimationFrame Didn't Help

LayoutCount: 1000 That number came from a loop that updates 1,000 cards, one time, inside one JavaScript task. A browser that's rendering a single frame should need to lay out the page once. This loop made it do so a thousand times, and it took 123…

devto-javascript

Shuffling an Array Made the Same Loop Seven Times Slower

in allocation order: 1.04 ns per element shuffled: 7.51 ns per element Same million objects. Same loop. Same result, down to the last digit. The only difference is the order of the items in the array. Picture a Node process holding a million rows in…

devto-javascript

Rendering the configured 3D product to an image for the quote

A configurator is not finished when the price is right. The customer configured a specific thing, and the quote needs to show exactly that thing. A spec list is not enough. People want the picture of the product they just built. So you capture the…

devto-javascript

Stop Stale Editors Overwriting Changes with If-Match

Two people open the same settings page. One changes the title; the other saves a description a minute later. Both receive a successful response, but the second save restores the old title. The second person did not deliberately undo anything. Their…

devto-javascript

1961 items available