HNHacker News
TopNewBestAskShowJobs

codesnik

1,029 karma · joined March 11, 2009

submissionscomments
codesnik··on Apple's macOS Sequoia lets you snap windows into position
there are, even with defaults. Look in "Window > Move and resize" menu of any app.
codesnik··on A solar gravitational lens will be humanity's most powerful telescope (2022)
aiming it and keeping it on target would be pretty hard, though. And time-consuming, to say the least.
codesnik··on A solar gravitational lens will be humanity's most powerful telescope (2022)
from what I understand, slowing down would be true for a non-massless particle, but speed of light in vacuum is still the same around massive objects. What changes is the frequency of the light in this particular direction, and that "turns" it, probably because of self-diffraction?
codesnik··on John Wheeler saw the tear in reality
all the wavefunction collapses only needed to compute future/far away collapses, we are all just thunks, evaluated because we needed for the final compute.
codesnik··on Fighting back against proper noun feature names (2021)
"My account" is innocent enough, compared to some other real life examples. And it sometimes doesn't come from marketing, but from development too.

I've worked in company which added a "funny" codename to everything: features, libraries, sprints, sections of backoffice interface. I don't know, maybe for some developers it makes things more engaging, for me it added a ton of unnecessary stuff to memorize or look up.

Also one of the reasons I don't like AWS. You really can call a router just "router", virtual machine "virtual machine" and so on.

codesnik··on Timothy Snyder on How the Collapse of the Soviet Union Took America by Surprise
> "arming Ukraine's invasion of Russia's Kursk Oblast"

just because you don't like US imperialism, you don't have to suck up to Russian one.

codesnik··on Hezbollah pager explosions kill several people in Lebanon
I'm still amazed that many US companies willingly force every employee to install zscaler "to improve security and compliance", application which basically passes all inbound and outbound traffic through zscaler edge servers, unencrypted. Who knows who could be listening. And who can control that they aren't.
codesnik··on Hezbollah pager explosions kill several people in Lebanon
> could have been

yeah, we can go a long way with that reasoning.

codesnik··on Rainfrog – a database management TUI for Postgres
would symlinks in that global location help, maybe?
codesnik··on We're not going to run out of new anatomy anytime soon
chemical gradients?
codesnik··on We're in the brute force phase of AI – once it ends, demand for GPUs will too
well, it's time for another abstraction layer.
codesnik··on Our Git Hash Bug
YAML is alright when you create it by hand. Problems start when YAML is templated, and frankly it's just dumb, though common. Templating the source without proper escaping could bite even with JSON.
codesnik··on Apple Hearing Study shares preliminary insights on tinnitus
wow. It's a long way between jaw, sinuses and the inner ear. Was your inflamation that big?
codesnik··on Ask HN: Who is hiring? (September 2024)
please specify Remote (US or Canada) as it says in your careers page. There're a lot of devs there from other locations.
codesnik··on Largest Geothermal Development in America Taking Shape in Utah
Iron and nickel mostly, not lead, AFAIK
codesnik··on Belenios: Verifiable online voting system
and yeah, I've been an election observer a couple of times, witnessing democracy deterioration in Russia proper, I have to say that they cheat on _every_ level, with ridiculous redundancy, and in many cases without any noticeable coordination. All it takes is to make elections in municipal organizations like schools and hospitals and just by convenience assign bureaucrats and other government paid officials (like teachers!) to manage voting districts. Those guys are very well trained to understand unofficial demand for "results". Otherwise you know, next time funding would be lower or day to day work would become harder.
codesnik··on Belenios: Verifiable online voting system
just door to door "vote at home" canvassing with two guys armed with AK. I wonder how many people assumed nobody would check where the tick went on the ballot. There were videos.
codesnik··on Belenios: Verifiable online voting system
happened in annexed parts of Ukraine during "referendum"
codesnik··on Magnetically levitated space elevator to low-earth orbit (2001) [pdf]
somewhat related concepts: Space fountain and and Launch loop

https://en.wikipedia.org/wiki/Space_fountain

https://en.wikipedia.org/wiki/Launch_loop

codesnik··on Robin Warren, pathologist who rewrote the science on ulcers, has died
Huh. Could you tell more on ways of sneaking up information to them? I personally am so undiplomatic I have hard time even to imagine, how to do it.
codesnik··on The evolution of Ruby's Range class
but because of sane notion of falsiness in ruby, it's easy to both always have a string on unchecked inputs

  "abc".slice(4, 10) || ""

_and_ check those inputs in one go if needed.

  substr = "abc".slice(start, len)
  raise "wrong inputs" if substr.nil?
  
just that one feature (only nil and false are falsy) of ruby makes it positively stand out among all the languages that have "null" as concept
codesnik··on The evolution of Ruby's Range class
flipflop basically has a hidden boolean variable for state. Btw, while I HAD used it, i still have no idea what's the scope of that state and when it'd reset itself.
codesnik··on Zen 5's 2-ahead branch predictor: how a 30 year old idea allows for new tricks
well, db latency in some naive unoptimized app with multiple sequential queries directly affects _app_'s throughput
codesnik··on Exercise: Minesweeper in 100 lines of Ruby
I'd too probably write it in Ruby using classes basically just as modules and not much else. It's totally fine using simple arrays and hashes in Ruby for data structures. For example, unlike in many other languages, board could be just a hash of booleans addressed by "tuples", like @board = {[x1, y1] => true, [x2, y2] => true}, which makes neighbours check trivial, while board will be sufficiently compact.
codesnik··on The complete Code of Hammurabi (~1750 BC)
seeing some genocidal tendencies in the current world, I sometimes think that maybe, just maybe ancient laws were not dictating the minimal possible punishment, but actually limited it. Like "Kill only you, not all your family". or "Take an eye for an eye, but just an eye, and you'll live"
codesnik··on I am using AI to drop hats outside my window onto New Yorkers
damn, I really hoped it'd autorotate.
codesnik··on Ruby: A great language for shell scripts
if foo is a method then

`foo + bar` and `foo+bar` are `foo()+bar`, but `foo +bar` is `foo(+bar)`

ternary ? : also has some interesting whitespace dependent mixups with symbols, but I cannot remember what. I think that parser has many gotchas like that, but they are really really rare to bite you, because ruby's magic follows human intuition as much as possible.

codesnik··on Ruby: A great language for shell scripts
I love ruby, and I'm using it for 18 years, but I've spent half a year on chef a decade ago and it was one of the worst wastes of time I had ever. Nothing to do with the language, everything to do with architecture of the thing.
codesnik··on Ruby: A great language for shell scripts
I sometimes wonder why we don't see ruby used for shell stuff more often. It inherited most of the good stuff for shell scripting from Perl, and Perl took a lot of it's syntax from sh and sed and awk, so almost anything you can do in shell script you can do in ruby, but with an option of making it gradually less terse and more readable, while having sane variables and data handling from the start.

Also ruby is great in allowing complexity to grow smoothly, no sudden hiccups. You start with just one line (everything goes into module main implicitly), extend it to a single-file script, require some built-in libraries, then add a module or helper class in the same file, and only then maybe extract those files to required files, add gems, whatever. No boilerplate whatsoever, no jumps, no big rewrites.

meanwhile, a lot of tooling nowadays is written in Go, and I have no idea why, it's not friendly for os manipulation at all, and number crunching power is not needed in many, many tasks of that sort.

codesnik··on Gilead shot prevents all HIV cases in trial
I wonder, how it is usually spinned? I'm asking as Russian and I see direct evidence of how people who grew up in the constant narrative "fascism is awful, that war was important, our grandparents are heroes" also, it seems, consumed it in easy/stupid form of "fascism is something that those weird germans do, they attacked us, and we won, so we can't be fascists ever".
← PreviousPage 6 of 17Next →