HNHacker News
TopNewBestAskShowJobs

bglusman

695 karma · joined September 1, 2009

PepsiCo Digital Commerce / Recurse Center (recurse.com)

brian.endofmyusername@pepsico.com (for work related stuff) or brian@endofmyusername.me for personal/hacker stuff.

submissionscomments
bglusman··on Stringly Typed
Protobuf does support JSON encoding[0], which I like as the .proto definition is quite readable, and then you can encode/decode either human readably or efficiently. It's even quite easy to have your consumer support both since the two are pretty easy to tell apart and if you know its either one or the other, you can just failover trying one to the other, possibly at some small cost... the guide also does point out some significant downsides to relying on the JSON version, but it can be useful in development and/or debugging in some cases, especially if you control both sides sending and receiving and can just toggle to use it when you want temporarily.

[0]https://protobuf.dev/programming-guides/json/

bglusman··on GPT-4.5
very impressive... also interested in your trip planner, it looks like invite only at the moment, but... would it be rude to ask for an invite?
bglusman··on "Do you not like money?"
This is actually apocryphal, I think from Adam Smith & before him Aristotle, pull quote from 1985 anthropology professor “No example of a barter economy, pure and simple, has ever been described, let alone the emergence from it of money"

https://www.theatlantic.com/business/archive/2016/02/barter-...

bglusman··on Hok: Higher-Order GPU Kernels in Elixir
I posted this because it's the most official source, but I learned of it from José's tweet here[0] and there's also a video about it[1] in the elixirforum discussion[2]

I haven't read the paper very far yet, but it sounds exciting in terms of ability to leverage GPUs for general purposes, curious for anyone's more expert opinion on how significant for elixir or in general this might be in terms of opening up more reusable/general code and library usage leveraging GPUs to developers who know little or nothing about GPU programming...

From the elixirforum discussion, this jumped out at me: Q8: What are higher-order kernels in Hok? A8: Higher-order kernels allow passing functions as arguments to GPU kernels, enabling dynamic configurations and flexible code reuse.

[0]https://x.com/josevalim/status/1847372557743456382

[1]https://www.youtube.com/watch?v=oB8eeJ-GaTM

[2]https://elixirforum.com/t/two-new-elixir-related-papers-at-t...

bglusman··on Elixir 1.17 released: set-theoretic types in patterns, durations, OTP 27
See announcement here https://www.rabbitmq.com/blog/2024/05/23/erlang27-support
bglusman··on The Rise of the Remote Husband
I didn’t read that part as saying “they’re not doing these things at all”, just that they’re not staying home them specifically to do them… they’re not “employed” as a “homemaker”, they are working from home. Unclear if you read it this way or are just commenting that you do more of those and you used to, several sibling comments seem to take, from your comment or the article, that this was a focus, and I don’t think it was?
bglusman··on OpenAI's "Own Goal"
As sibling comment by wsgeorge hinted, it is regional, but really it’s the reverse, terminology of “non profit” is regional to the US, basically everywhere else in the world I’ve heard of refers to non profit entities as “NGO”s… admittedly all businesses are “organizations” also but, since they tend not to call themselves that explicitly and other government entities do (e.g. World Health Organization), it seems reasonably clear as a distinction.
bglusman··on Toxic toddler fruit pouches: "high" lead levels sicken 7 in 5 states
I hadn't heart about this but, to summarize, two people received capital punishment over this, one suspended death sentence, 3 life imprisonments, 2 15 year jail terms, and 13 others with lesser jail terms. http://www.chinadaily.com.cn/china/2009-01/23/content_742298...
bglusman··on Metric Time
Came here to mention/contrast Vinge's metric time with with my (quick, approximate) understanding of this approach...

The problem with this approach is it attempts to "redefine" hours and minutes... part of what I liked in Vinge's/Deepness' approach was, it ignored all that and just talked about seconds in standard exponential scientific notation... it makes a lot more sense in space though, where there's no need/logic to connecting or synchronize to a specific solar cycle, so they just think/talk in kilo-seconds (about 40 mins) and mega-seconds (about 11.6 days)... or at least those are the two I recall them using enough that I got semi-used to thinking in them while reading the book... I had to convert, but I didn't have to redefine any existing unit or remember/remind myself which meaning of hour/minute they're using, because nothing changed.

bglusman··on Electricity from Space: The 1970s DOE/NASA Solar Power Satellite Studies
oh, whoops, somewhat duplicated your point, sorry!
bglusman··on Electricity from Space: The 1970s DOE/NASA Solar Power Satellite Studies
The book Critical Mass by Daniel Suarez is my only source, but, the efficiency of rectenna is discussed there, and particularly, though the efficiency of the transmission is somewhat low, the efficiency of solar panels in space is MUCH higher than on earth, and they can operate 24/7, so the overall system efficiency is still substantially higher than the equivalent solar panels on earth... at least, assuming you can build the solar panels in space from mined material as they do in the book, I imagine if you needed to launch all the material from earth, it would probably be a fairly different story, assuming you included that in the calculations.
bglusman··on Electricity from Space: The 1970s DOE/NASA Solar Power Satellite Studies
Came here to say the same! Though it's a bit fun that when they upgrade the moon to use a nuclear reactor to power several mass drivers, they mention how the satellite can be repurposed to provide power to earth now... which makes sense. The book (and its part 1 book, Delta-V) overall point about the value and utility of asteroid and lunar mining to bootstrap whole economies around the Lagrange points and that sending that matter back down to earth makes very little sense was pretty compelling, and relatedly that building a colony on Mars probably makes very little sense vs building in space with artificial gravity and artificial radiation shielding, where you're not subject to a giant gravity well to go back to earth/elsewhere in solar system.
bglusman··on Elixir and Rust is a good mix
I admit for a long time this was my primary motivation to learn Rust, but, sadly, I haven't come across problems in years that were CPU bound/where I needed something like Rust... Rustler still looks like a great fit if needed, but, depending on the use case, if I were CPU bound and needed to write my own code/not just use a Rust library, I'd be as or more likely to look at using Zig and Zigler[0], for much faster learning curve, and from what I've read, easier tighter integration into elixir, including I think language server integration. Some discussion here[1] though I forget if I listened to this one or not.

[0]https://github.com/ityonemo/zigler [1]https://podcast.thinkingelixir.com/83

bglusman··on [dead]
Translated: https://github-com.translate.goog/meiyulee/MathGPT?_x_tr_sl=...
bglusman··on Bumblebee: GPT2, Stable Diffusion, and More in Elixir
I’m not expert here but I think most of that risk is mitigated these days since BEAM introduced Dirty Schedulers/Dirty NIFs for any NIFs that take over 1ms to execute… I think this isolates (or can isolate) their issues to only effecting other work on the same Dirty scheduler, aka other Dirty NIFs…

Few quick links:

https://www.erlang.org/doc/man/scheduler.html

https://medium.com/@jlouis666/erlang-dirty-scheduler-overhea...

https://bgmarx.com/2018/08/15/using-dirty-schedulers-with-ru...

bglusman··on Ask HN: What do you code when learning a new language/framework?
Came here to give this answer.. it’s not an entire way to learn anything but it’s a good start and flexible enough it can actually apply to pretty much any new tool or tech component you want to learn… can do database or vitalization or most things it can think of can adapt some aspect of it to work with life as a simple toy problem. I think I discovered my favorite functional version of life adapting game of life to Apache Spark to find a way to describe the next state from current in a unified way without conditional logic or something, though memory is fuzzy as I never did spark again and it’s been 7 years now…

Also second someone else’s suggestion of Exercism.

bglusman··on Reading Ourselves to Death
Didn’t read 100% of article yet but the premise somewhat brings to mind the book “The Alphabet vs the Goddess”[0] which… definitely criticisms can be made/definitely isn’t the whole story for the events and narrative of history it focuses on, but is really compelling and interesting interweaving of some major historical threads not otherwise easily or often connected

[0] https://en.m.wikipedia.org/wiki/The_Alphabet_Versus_the_Godd...

bglusman··on How to make decisions like a poker player
I think you meant a 50% chance for $100 is the same as a 5% chance for $1000 right? Just... funny math error as I was like, wait, no... I'll take the 10% chance at $1000 every time! (unless I'm desperate for my next meal, then, as you say, the lower variance would point to higher certainty of some money vs max expected value)

EDIT: I see someone else noticed this further down than I looked in comments, sorry for dupe.

bglusman··on Ask HN: Replacement for Stack Overflow jobs section?
This was the original vision of the founders behind recurse.com (formerly Hacker School) when they applied to YC back in 2010...

https://www.recurse.com/manual (citation using this exact term)

bglusman··on Ask HN: Who is hiring? (February 2022)
PepsiCo E-commerce | Elixir/Phoenix/LiveView Engineer | NYC/SF/Remote | Remote

We have some newly available budget for contractors, and often our contractors can transition to FTE if interested and eligible after some time working with us. (We have people working in most major timezones so location is not a barrier, but at this time only US residents are eligible for FTE, but we can contract with people anywhere in the world)

We also have some open FTE roles you can apply for directly below, but that process is a bit slower and more bureaucratic at times so depending on your timeline/availability, starting contract may be an awesome option, and we strive not to differ in how we treat contractor team members from FTE. Depending on what team you join and you are interested in, we have needs and opportunities for a wide variety of skills and technologies in various teams as we broaden the usage of Elixir at a Fortune 50 company to all areas of our online, e-commerce and purchasing/delivery/fulfillment systems.

For FTE roles, please apply at one of these links: https://www.pepsicojobs.com/main/jobs/262158BR?lang=en-us&pr... https://www.pepsicojobs.com/main/jobs/253452BR?lang=en-pl&pr... https://www.pepsicojobs.com/main/jobs/262464BR?lang=en-us&pr...

For contract roles or to discuss, please reach out to me via email from my profile and send me a resume, GitHub and/or email contact information as well as any relevant details you’d like to share. I’ll try and respond to everyone, but if I’m slow to respond, I appreciate your patience and interest.

(apologies my email was missing from profile because I put obfuscated in the email field and missed note that its only visible to admins there)

bglusman··on A Lisp Interpreter Implemented in Conway's Game of Life
Yup. https://www.youtube.com/watch?v=xP5-iIeKXE8
bglusman··on The Matrix Is Unreal
Since I didn’t see it elsewhere, here’s a link to the actual video being discussed: https://youtube.com/watch?v=WU0gvPcc3jQ
bglusman··on The biggest crypto lending company is a ponzi scheme
Well… I’m not expert on DeFi or anything but until the 20th century banks existed and didn’t have this right? But yes, there were runs on banks… but there are no runs on CDs right, and that’s a banking product also? Why not? Well, they’re contractually wrapped up for a time period. What if all DeFi lending is/was similar and crypto contracts locked them up for set periods… would that be an OK and legitimate system then? If not why not?
bglusman··on Sleep technique used by Salvador Dalí works
Richard Feynman wrote about something similar in “Surely you’re joking Mr. Feynman!” (https://en.m.wikipedia.org/wiki/Surely_You%27re_Joking,_Mr._...!)

This appears to be most of the relevant except: http://entersection.com/posts/897-richard-p-feynman-on-watch...

bglusman··on The biggest crypto lending company is a ponzi scheme
I think you may have just also described fractional reserve banking? that is literally where much of the money supply comes from.

https://en.wikipedia.org/wiki/Fractional-reserve_banking

bglusman··on Anil Seth Finds Consciousness in Life’s Push Against Entropy
You might be interested in Lee Smolin’s book which explores this very hypothesis, among others and a generally fascinating review of how physics got where it is…

https://en.m.wikipedia.org/wiki/The_Life_of_the_Cosmos

bglusman··on How we got to LiveView
Technically it was probably leaking objects, not memory per se, but… I suppose that’s a bit of a pedantic distinction/memory leaked with the objects… but none of those things is incompatible with it being a revolution.
bglusman··on How we got to LiveView
That’s a little ironic since, in a real sense, Rails itself came as an afterthought, not a fully formed vision. DHH built Basecamp without a framework, and then refactored a lot and extracted the core of what he’d happened to build into a very general reusable framework. You could criticize Phoenix for not having the same pedigree I suppose, of being first and foremost a product for getting things done, and only a framework as a secondary decision, but saying rails started with an opinionated vision and Phoenix didn’t is a bit funny, or like the pot calling the kettle a water retaining vessel.
bglusman··on Gibraltar, world’s only airport runway intersecting a road
I was about to mention what I heard many years ago about 1 mile in every 5 of US highways having to be straight, so that in emergencies it could be used as a runway, but I decided to google it first for a reference and it turns out it's an urban legend: https://www.fhwa.dot.gov/publications/publicroads/00mayjun/o...

also some additional details here: https://science.howstuffworks.com/engineering/civil/were-u-s...

bglusman··on Fish shell
It is a bit redundant, but that's not the same thing as saying it's bad or author should have eliminated this redundancy. I think of this a bit like a Checksum, which is also a redundancy... it reduces cognitive load/likelihood of error by the reader when parsing this particular acronym. Like ATM can mean both "At the moment" and "Automated Teller Machine", saying "ATM Machine" helps disambiguate (in a way) which acronym you mean. Often context is enough to do this, but as a habit/affordance to users with variable levels of familiarity with the context, I think it's a useful and good redundancy rather than a wasteful one to be eliminated.
← PreviousPage 2 of 7Next →