Better HN
topnewbestaskshowjobs
Log inSign up

tylerpachal

139 karma · joined Feb 26, 2014 (12y ago) · 125 submissions

Software engineer from Canada!
Submissions

comment 3y ago · link · parent

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-...

comment 3y ago · link · parent

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/

comment 3y ago · link · parent

Are remote opportunities open to Canadians?

comment 3y ago · link · parent

This is the first new app I have downloaded in a long time, it is a lot of fun!

comment 5y ago · link · parent

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`).

6.

Ask HN: What is your remote working office setup?

3 points · by tylerpachal · 6y ago · 4 comments

comment 6y ago · link · parent

Thanks!

comment 6y ago · link · parent

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?

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

Cool! I don't know much about bird conservation efforts but it is encouraging that we are having success in some areas.

comment 7y ago · link · parent

(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?

comment 7y ago · link · parent

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...

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

I really want to get the MP02 but the reviews on /r/punkt are all pretty damning.

comment 7y ago · link · parent

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-...

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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).

comment 7y ago · link · parent

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.

comment 8y ago · link · parent

Do you automate the selling as well?

comment 8y ago · link · parent

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

comment 8y ago · link · parent

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).

comment 8y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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...

comment 9y ago · link · parent

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/

comment 9y ago · link · parent

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...

comment 9y ago · link · parent

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".

12345