HNHacker News
TopNewBestAskShowJobs

tylerpachal

139 karma · joined February 26, 2014

Software engineer from Canada!
submissionscomments
tylerpachal··on Erlang/OTP: Garbage Collector
With CacheX being involved the memory leak you mention in your parent comment might be caused by ETS holding references to your binaries. I ran into something similar a few years ago and wrote about it here[0], but the tldr is that you can use `:binary.copy/1` or use the `:copy` option in the `Jason` module if you are using it.

[0] https://tylerpachal.medium.com/tracking-down-an-ets-related-...

tylerpachal··on IPCC climate crisis report delivers ‘final warning on 1.5C’
Not specific to fossil fuels, but there is Earth Overshoot Day[0]

> Earth Overshoot Day marks the date when humanity has used all the biological resources that Earth regenerates during the entire year.

[0]: https://www.overshootday.org/

tylerpachal··on Ask HN: Who is hiring? (March 2023)
Are remote opportunities open to Canadians?
tylerpachal··on Show HN: TromPhone, a Trombone for Your Phone
This is the first new app I have downloaded in a long time, it is a lot of fun!
tylerpachal··on Elixir: Practical Concurrency Cookbook
In addition to what the offer recommended in the "Scheduling work" section, using the `:timer.send_interval()` can be useful if you want to do something every X seconds, instead of every X + Y seconds, where Y is the time it takes to process the "work" message.

Also I prefer to use `handle_continue` instead of `schedule_work()` style (which in a lot of cases pre-date the introduction of `handle_continue`).

tylerpachal··on Ultimate Electronics
Thanks!
tylerpachal··on Ultimate Electronics
Somewhat related:

I want to build my own electric car, well, convert an ICE car to an electric one. I have the fabrication skills but I want to learn more about of the _electric_ stuff (the motor, AC vs DC, the controller, differences in batteries, etc). Does anyone have a good resource for that?

tylerpachal··on Air Travel Emissions Vastly Outpace Predictions
It would be great if more people did this. In my opinion, air travel is pretty low hanging fruit when it comes reducing personal carbon footprints. I'll spend some time closer to home rather than hopping across the ocean/continent for every vacation.
tylerpachal··on Birds Are Vanishing from North America
Cool! I don't know much about bird conservation efforts but it is encouraging that we are having success in some areas.
tylerpachal··on Birds Are Vanishing from North America
(serious) Is there any hope? Its just one problem after another (probably because everything is linked).

What are the chances that we will get our act together or be able to engineer ourselves out of all of these problems?

tylerpachal··on To Keep Track of Reddit Conversations Around NYT Articles, We Built a Slack Bot
Sangria is an excellent GraphQL library for Scala! Very sadly Oleg Ilyenko, the maintainer, passed away recently[0].

[0] https://twitter.com/etorreborre/status/1126921902386184195?s...

tylerpachal··on Ask HN: What can I do professionally to combat climate change?
A resource for finding jobs for "green" companies would be great. At least here in Canada, my searches that intersect "software" with "green"/"renewable"/"wind"/etc yield next to nothing.
tylerpachal··on CO2 in the atmosphere just exceeded 415ppm for the first time in human history
Tagging onto this to see if anyone knows of resources for jobs in Canada. I search every once in awhile for those key terms but finding an intersection with software jobs yields basically nothing.
tylerpachal··on Ask HN: What is the best “dumb” phone?
I really want to get the MP02 but the reviews on /r/punkt are all pretty damning.
tylerpachal··on Ask HN: What are must-know concepts for back end development?
I don't think this is the original source (I seem to remember a blog post with better diagrams), but this post [0] does a good job introducing pieces you need as your number of users increases. It is specific to Amazon, but the concepts are universal.

[0] http://highscalability.com/blog/2016/1/11/a-beginners-guide-...

tylerpachal··on Ask HN: What are your favorite board games?
Powergrid is my favorite free for all game at the moment. If you have enough people together then Scotland Yard is a great 1 vs many game to play as well.
tylerpachal··on Ask HN: Improving the world as a software developer
I would love to contribute to these kind of things, but unless I was missing something on that website, there were no links to jobs/careers. Do you happen to know of a list of companies that hiring for climate change related fields?

Outside of the obvious Telsa/Solar City, I don't really hear about many companies that I could work for as a software developer who are tackling this kind of stuff (though I am sure they are out there).

tylerpachal··on Ask HN: What lang and web stack is both popular and similar to Ruby and Rails?
You should try Elixir and Phoenix.

Phoenix is similar enough to Rails that you won't feel totally lost, while using Elixir will teach you about functional programming and actor systems.

tylerpachal··on Ask HN: What are the things that you have automated in your personal life?
Do you automate the selling as well?
tylerpachal··on Ask HN: What you watch to laugh?
If you are interested in cooking/food, I get a laugh out of Brad Leone's show on YouTube called "Its Alive", where he focuses mainly on fermented foods.

Recent episode: https://www.youtube.com/watch?v=7T4NutUazJE

tylerpachal··on Ask HN: What are your experiences re: relocating?
I moved from Canada to Korea.

The most difficult part was getting a phone, which depended on having a bank card, and the bank card depended on having my residency card. No individual part was difficult, but each step took time ("come back in a week to pick up your ID card") which was frustrating and lengthy.

If you are moving to a country where you don't speak the native language, hopefully you will have some friendly coworkers that are willing to help you through some of the language barriers (going to the bank was a big one). Additionally, try to live an area of the city where you might meet some people that also speak your language. In my case I lived in an older area of the city where there was a small American military base, so there were lots of English-speaking people around, which makes day-to-day tasks a lot easier (pharmacy, doctor, haircuts, etc).

Also lookout for some non-obvious cultural differences. I had a friend that was vegan, and she had a very hard time going out to eat (which is big part of the Korean culture) because vegan food was hard to find (meat and fish are very popular there).

tylerpachal··on How to Prepare a Talk
I gave my first ever talk last night for the Toronto Elixir meetup (Introduction to Actors in Elixir). It was a lot of fun! The author here is correct about the time, my talk was around ~20 minutes, but I probably spent close to 10 hours working on it.

I also like this part:

> The slides are in a sensible order because they arose from your natural thought process

at the beginning of my preparation everything felt awkward because I was trying hit different points I had thought of ahead of time. I threw all of that away and started from scratch. The second time I thought more about the "story" I was trying to tell, and found that things flowed more naturally after that.

tylerpachal··on Exceptions in Elixir
Awesome thanks for the info! I guess I have never really thought about the case where my supervisor would go down before the workers would. But you're right the processes are "linked" in Elixir as well.
tylerpachal··on Exceptions in Elixir
I wrote a blog post[0] that walks through some example Elixir code to explain it. It boils down to having Supervisor processes that monitors worker processes (or other supervisor processes), and the supervisor receives a message when the worker process exits. The supervisor can then decide what to do based on what the error message is.

[0] https://medium.com/@tylerpachal/let-it-crash-creating-an-exa...

tylerpachal··on Ask HN: What are you learning right now?
OTP comes from Erlang (which Elixir is built on) and it is a framework that is used for creating distributed applications (it originally stood for Open Telecom Platform). It has databases, a test framework, and debugging tools to help.

Down in Elixir land you mainly see it in the form of GenServer (generic servers that are essentially actors) and Supervisors for supervising those GenServer workers and other tasks/processes/

tylerpachal··on Ask HN: What are you learning right now?
Elixir and OTP. Really enjoying it and writing some blog posts about it. My latest [1] was an experiment in creating my own simple supervisor.

I am working my way up to having an Elixir application spread across many containers where the processes can pass messages to processes in other containers.

[1] https://medium.com/@tylerpachal/let-it-crash-creating-an-exa...

tylerpachal··on Show HN: Link.fish – API to extract data from websites as JSON
There is a small typo in the "Why link.fish API?" section on the homepage:

> Additionally, do we have a growing collection of custom parsers for websites and website independent parsers for specific data.

I don't think you need the "do".

tylerpachal··on Introducing GraphQL Support for Insomnia
You are probably correct. The server-side GQL implementations I have worked on expect only POST requests, and expect each requests' body to contain a query or a mutation.
tylerpachal··on React, Relay and GraphQL: Under the Hood of the Times Website Redesign
We are using the Sangria[0] framework with a Play[1] app. Sangria does all of the GQL related stuff and Play dos the usual server stuff. Sangria's documentation is quite good, but the part that answers your question will be in the "Schema Definition"[2] section, which is where you describe the schema of your graph, and how each field is resolved.

[0] http://sangria-graphql.org [1] https://www.playframework.com [2] http://sangria-graphql.org/learn/#schema-definition

tylerpachal··on iOS 11 turns the iPad into a different machine
Perhaps a work phone and a personal phone?
Page 1 of 4Next →