HNHacker News
TopNewBestAskShowJobs

mireq2

13 karma · joined December 29, 2020

Python / Django / C / C++ developer https://github.com/mireq/
submissionscomments
mireq2··on If you want to create a button from scratch, you must first create the universe
No. I need something like <option value="123"><img src="...">Mars</option> - separated internal representation and value and dynamically updated. If i can fit whole list to client memory why should i choose datalist over select?
mireq2··on If you want to create a button from scratch, you must first create the universe
Great satire but let's create that same for combobox with server side filtering. Now you have problem because it's not possible with native HTML elements. Many re-implementations are result of missing native elements.
mireq2··on Rio Terminal: A hardware-accelerated GPU terminal emulator
iTerm2 switches GPU to CPU rendering when running on battery. GPU rendering is more power hungry than CPU.
mireq2··on Understanding the N + 1 queries problem
I spent couple days rewriting everything from Django to Jinja2 and it was really big difference with 10x speedup (from 500ms for invoice list to 50ms). It was big e-commerce system with every ORM query optimized, selecting only required fields, prefetching related relations or selecting related. Django templates are really really slow and hard to debug. Rewrite was really great decision in this case.
mireq2··on Ten Years of ThinkPadding
Clips are not so fragile. I have disassembled my P14s gen 2 wtih AMD on first day because i wanted Intel AX210 wifi instead of realtek. Two fingernails broken, because i don't have tools, but with plastic tools it should be easy (here is video https://youtu.be/K_lJcciszsw).

Big problem for me is USB-C. I don't like small, fragile connectors directly soldered on motherboard. USB-A is on separate board. I don't know why USB-C has no separate board.

Trackpoint on AMD models has terrible in linux support. Sample rate of trackpoint is max 40Hz, because it's in fallback mode (PS/2 protocol). Touchpad can't be disabled in BIOS and low rate is because is muxed with trackpoint to single PS/2 interface.

S0ix don't work. No opportunistic sleep. Minimal power usage on battery with AMD-5850u, LCD at minimum brightness (4k panel) is 3W. Standard power usage while i am working is 3.5-4.5W.

mireq2··on Show HN: Raspberry Pi 400 with a $2 IPS 240x240 micro display
Really cool display even if it has problems with tearing. I played around with that display a bit - https://youtu.be/8S1BXnx-vLE (STM32, 60+ fps), https://youtu.be/Wql4WTpPrWs (ESP32, ~40 fps)