HNHacker News
TopNewBestAskShowJobs

codesnik

1,029 karma · joined March 11, 2009

submissionscomments
codesnik··on Unveiling the big leap in Ruby 3.3's IRB
I still wonder what are the reasons to steal some features from "pry" instead of just adopting pry itself.
codesnik··on UK porn watchers could have faces scanned
"Let me see your O face!"
codesnik··on Tinnitus linked to undetected auditory nerve damage
For me it's an attention issue. I went for a checkup and it was a first time I've been in silenced cabin where doctor checks hearing. And I wasn't able to hear some of the frequencies, because of ringing in my ears, which was louder. And doctor expressed some concern about it.

Before that I rarely ever noticed it. Now it is very loud and constant. Maybe it was like that for a long-long time, but now I just focus on it too much.

codesnik··on "Useless Ruby sugar": Argument forwarding
in my opinion, Ruby (and also aforementioned perl back in it's era, but this would be pointless to defend) is one of the languages where syntax and semantics looks like they took order of magnitude more thought than most of other languages.
codesnik··on Elixir at Ramp
offtopic, but are your "remote" positions available for developers outside of US?
codesnik··on Git Branches: Intuition and Reality
because a) everyone's intuition is different, b) sometimes uneducated intuition is just wrong. On a surface level things looks good, but in some specific situation intuitive ways of doing things could be not consistent or don't have any solution at all. In this cases you just stuck with magic box of software which did something and you have no idea what and reach for backup.

Git is not like that. It is very-very simple. If you learn basics of it, your intuition will align with git's "intuition" too, and you can do crazy things with total peace of mind, without googling or looking into source code of git to see how they had to make something "intuitive" in some definition of the word.

codesnik··on Git Branches: Intuition and Reality
also, using stash is only a first level. git cherry-pick, git rebase --interactive, git reset --hard HEAD^ and friends allows do such moves and cosmetic extractions after the commit itself. I also prefer to split cosmetic changes and feature changes, so I extract cosmetic stuff to the main all the time.
codesnik··on Git Branches: Intuition and Reality
why crucified? you're doing exactly what I do. All the people who have any trouble with git whatsoever try to use it as a black box for some high-level whatever ideas of what is their workflow should be. And git is not that, git is a thin wrapper around simple and elegant data structure. If you understand it, then everything clicks and git doesn't EVER gives any trouble.

Your friends are unreasonable, unless you collaborate with them on the same branches and rewrite them after you shared them.

codesnik··on Bubble sort in pure CSS
I can't wait for "tone it down" AI button in the next chrome version.
codesnik··on The costs of microservices (2020)
lemme guess, you all converged to Java?
codesnik··on Luxury beliefs are status symbols (2022)
"so, translated beliefs could be just expensive status symbols coming from dishonesty and having too much of free time. So here are examples of leftist beliefs, see?"
codesnik··on PostgresJs: PostgreSQL client for Node.js and Deno
replace how? it can complement it, probably, in edge functions, but replace?

Postgrest-js is something you can put in your code running in client's browser or phone, or in any place you cannot trust code won't be tampered, thanks to many quirks and limitations of PostgREST.

How to make an actual postgres connection, which is simultaneously limited enough to be secure and safe to your data and data of other users, and still be useful for anything, I have no idea. Is it possible at all? Or, ok, how many different users it could handle?

codesnik··on Archaeologists extract DNA of ancient Israelites
"by the 3rd or 4th century AD" - that early?!
codesnik··on C uses "&" for the address-operator because 'ampersand sounds like "address"'
TIL "ampersand" etymology. from the Oxford dictionary: "Origin: late 18th century: alteration of and per se and ‘& by itself is and ’, formerly chanted as an aid to learning the sign."
codesnik··on The Workflow Pattern
I didn't know it can serialize continuation! I always thought that with seaside you have to run a single server, and any reboot would just kill the state.
codesnik··on What if Planet 9 is a Primordial Black Hole? (2019)
relative speed against other stars is very much detectable by red and blue shift of light. We would definitely know if sun revolves around something, meanining changes its direction.
codesnik··on What if Planet 9 is a Primordial Black Hole? (2019)
launch where exactly?
codesnik··on CatalaLang/catala: Programming language for law specification
law tests would be good, though they probably have to be "evaled" via the same mechanism which would apply them. Meaning, courts :\

I personally would be happy if any country would attach rationale for the law to the law itself. And possibly some KPI to see if it works. So the law could be reevaluated later, to see if it works at all, or maybe counterproductive, or maybe some major actual application of the law is not why it was introduced.

codesnik··on Elixir saves Pinterest $2M a year in server costs
It'd be fine if it wouldn't spam google images results, and resulting images are often completely cut out of context, or origin link is not working.
codesnik··on A man who can talk backwards (2017)
um, are we talking about English? because most words spelled backwards would be ambiguous how to read. With amount of different reading "rules" in English, it arguably close to being ideographic.
codesnik··on Australians fight for the right to work from home permanently
and if employer wants everyone in the factory for 14 hours 7 days a week, well...
codesnik··on Harvard ethics professor allegedly fabricated multiple studies
Researching remorse, N=1
codesnik··on Debate over 'fake work' and 'lazy management' in tech industry
I'd love to see an example of such an accepted accountability at least once in my life.
codesnik··on From Stacks to Trees: A new aliasing model for Rust
interesting. Can you expand on Elixir incompatibility? How is it different?
codesnik··on In a Sheep to Shawl competition, you have 5 people, 1 sheep, and 3 hours
I wonder if it's possible to wash the sheep with a shampoo or something before the competition.
codesnik··on Boot to Vim, Vim as Pid 1 (2014)
I wonder, if processes started in those subshells, even normally terminated, would accumulate without normal init program? I forgot if "reaping" is something special to do.
codesnik··on A new approach to computation reimagines artificial intelligence
I don't get it. How those hypervectors are different from matrices in neural networks? Ok, having not just 0 and 1 for each separate shape and encoding each set of mutually exclusive attributes with just one parameter would make it more compact and fast, probably, but also sounds very limiting, and making it more close to Prolog than to neural networks. We, humans, can deal with "roundish squares".
codesnik··on Visual programming with Elixir: Learning to write binary parsers (2019)
sounds interesting, thanks.
codesnik··on Visual programming with Elixir: Learning to write binary parsers (2019)
I sometimes ponder, how much effort it would take to make a similar matching interface not for binaries but for regexps and/or something grammar-like. After structured matching of binaries regexps in elixir just feel awkward.

It wouldn't work well with other matching constructs, though, if matching is baked into beamvm itself as a core instruction for speed or something. Guess I have something to investigate this evening.

codesnik··on Visual programming with Elixir: Learning to write binary parsers (2019)
some errors there.

  head = 0x00
  piece = <<0x01, 0x01, 0x01, 0x01, 0x01>>
  << head,             # When a variable is already referenced it must be equal for the pattern to match
     piece,            # Match a string
     rest :: binary >> # You can mix matching variables and assigning new variables.
it should have ^head, and ^piece (the term is "pinning"). Unlike in erlang, elixir will happily "reassign" variables to the new content on whatever is on a right side of the match.
← PreviousPage 8 of 17Next →