Better HN
topnewbestaskshowjobs
Log inSign up

codesuki

1,052 karma · joined May 21, 2015 (11y ago) · 120 submissions

https://github.com/codesuki
Submissions

91.

Pokemon Red INSIDE Minecraft(youtube.com ↗)

1 points · by codesuki · 8y ago · discuss

92.

The Hidden Link Between Farm Antibiotics and Human Illness(wired.com ↗)

1 points · by codesuki · 8y ago · discuss

93.

Techie to tech lead: My five biggest mistakes(thoughtworks.com ↗)

2 points · by codesuki · 8y ago · discuss

comment 8y ago · link · parent

That is a valid concern! But trying (if needed) can't hurt. Anyways good luck with everything! :)

comment 8y ago · link · parent

Just had a look. Still only in Japanese: https://www.cyberagent.co.jp/careers/professional/jobs3/cont...

Culture info (English): https://www.cyberagent.co.jp/en/way/culture/

comment 8y ago · link · parent

You could probably get more where I work (CyberAgent) or similar places like Line, Mercari. Applying is free :)

comment 8y ago · link · parent

In case you stay in Japan contact me. Where I work it's no problem to take several weeks off. Otherwise we have a good work climate, too.

comment 8y ago · link · parent

Where do you work at?

comment 8y ago · link · parent

> Should shared libraries be in different repos, or should you put everything in a single repo? How do you deal with versioning? What happens if one app wants version 1 of the library and another app wants version 2? How do you deal with backwards compatibility of the API? Do you make a whole new library when you decide the old API is incompatible with the new vision?

Could you share methods that worked well for you? Asking because those question come up a lot and there never seems to be any conclusion.

comment 8y ago · link · parent

We are using a similar setup. K8s, Bazel, Go, Java (Android), Swift (iOS), Typescript. Everything with gRPC. I really like Bazel because it makes working with Protobuf so much cleaner (at least in theory) and allows us to have one build system for all those languages (at least in theory).

The easiest to set up was Go. Go support is already very good, including gRPC and Protobuf. The only drawback was that it breaks editor integration of some tools / linters because of the different directory layout for generated files.

Vanilla Java also has good support but when you go to Android land things change. At first we had to use a custom fork of grpc-java to build for Android, but with this change https://github.com/grpc/grpc-java/pull/4289 we were able to go back to the main repo.

gRPC-web was a prohibitively large dependency for our front end. After all we switched to a JSON API (using Envoy). I read that Google uses gRPC for products like gMail and since Google is so obsessed with web performance I wonder how they manage the dependency size (a few 100kb for us). There is a lot of information scattered around like a json-proto protocol (not publicly available?), which apparently should not be needed with proto3 and newer browser because performance is supposed to be similar. grpc-web uses the official protobuf/javascript package, using protobuf.js the dependency size as well as the compiled protobuf might be smaller.

While building Swift and Objc for iOS was super easy with Bazel we couldn't manage to build our protobuf/grpc. There were no working rules at the time and we had no time to fix it completely which is why we are not building that part with Bazel, yet. https://github.com/pubref/rules_protobuf/issues/188

I'd appreciate any insights you have on Objc support and grpc-web. It'd be great to be able to use grpc across the whole stack.

comment 8y ago · link · parent

Could you give a more complete example of how that works? I had a look at the `go/ast` package but couldn't find anything.

comment 8y ago · link · parent

Thanks! So, would you say the future for recommendation is deep learning? While I am not opposed to it, I find it very opaque.

comment 8y ago · link · parent

Can you share any ideas on how you would implement a new recommender these days? Any papers you like? I am trying to learn more about this topic, but good information is hard to come by. The best resources I found so far are presentations from Netflix and Spotify, but they skip over so many details and assume so much knowledge that it's hard to get good results without being able to consult someone with experience.

comment 9y ago · link · parent

I am converting my proto to typescript with https://github.com/improbable-eng/grpc-web and until recently also used their go server library. That meant my grpc servers were listening on 2 ports, gRPC and gRPC-web. I since replaced the gRPC-web part with envoy. Works fine together with the gRPC-web typescript. The gist should give you an idea how to set up a small example. https://gist.github.com/codesuki/f0514368a30b483058007f5fe38...

105.

Show HN: My friend made an android library to make in-app billing easier(github.com ↗)

4 points · by codesuki · 9y ago · discuss

comment 9y ago · link · parent

Sorry to turn this into a different direction but I wanted to ask you about packaging + deployment.

I am about to try using helm for packaging my Kubernetes configs to make use of its templating. Being able to include Kubernetes changes in the release makes it less common to forget some new env variable etc.

The only thing I don't like is that it replaces kubectl in a way. And some comments here speak of problems during deploy and rollback which makes me wary.

What are some best practices around that topic? I was also thinking of deploying with spinnaker but could not confirm it works with helm.

Any info is appreciated!

P.S. have you thought about making a redis-cluster example repo? Redis 4.0 has a new `cluster_announce_ip` setting with which I made it work, but I still don't like my setup 100%.

comment 9y ago · link · parent

Yes, I noticed that that's why I said if you live the Japanese way you can save some money. So I am aware. Maybe I should rephrase that?

The beer is almost 8-10x more expensive compared to where I come from though.

You are right that most people here live and raise kids in smaller apartments. But just because this is the status quo and you don't 'need' more I wouldn't say it's good. Why should your kid have to live in a 5sqm room? I wouldn't be able to justify that for myself and would have to move outside. I think it's the mentality here, singles, for example, spend most time at work or similar so they don't mind having a tiny, affordable home. Also most Japanese (there are exceptions) normally don't invite many people to their home etc.

comment 9y ago · link · parent

Yes, you can eat cheap ramen. But do you want to eat cheap ramen every day? Most supermarkets in Tokyo are expensive. Want some Zucchini? Pay 200 yen for a tiny one. Want an apple? Pay up to 350 yen for one. Want a beer? Pay 300 yen for 0.3l. Restaurants? Want pizza? Pay 20$. Maybe that's normal in the US, I don't know but in my experience, a pizza is 6$ tops.

Of course, there are things that are cheaper. If you live as Japanese as you can, you can save some money. But rent prices are very high for a normal Japanese worker. As some people here already said salaries are very low.

Average income per age range[1]: 20s:348万円 (~34k) 30s:458万円 (~45k) 40s:586万円 (~58k) 50s:721万円 (~71k)

My ~55m2 room costs about ~1800$ without electricity etc. Since the owner recently changed for new people the price went up to ~2000$ Given it's a modern 'mansion' (apartment) with nice extras, in a very good location it's still cheap (wondering why every day.) I heard SF is crazy expensive, but that's a different problem. Most people here, even in IT jobs get about 2000 dollar per month. So where can they live? They can live in some 30 years old very tiny apartment or live outside of Tokyo and drive in 1 hour or more every day. Even if you live 30 minutes away by train, most trains coming from affordable areas are packed and you have to queue up to get into one, which can extend the commute time to an hour or more[2]. If you want to go to work by car be ready to pay around 300$ per month for a parking space.

Then, say you start a family. 55m2 won't cut it anymore. 80-100m2? Very few places. Very expensive. Most rooms here are between 20-35m2 made for singles.

Anyway, this maybe sounded negative but I love this city. All things considered, it's awesome and comfortable to live here.

[1] https://doda.jp/guide/heikin/2014/syokusyu/it/ [2] Source: co-worker

comment 9y ago · link · parent

Thank you for sharing your thoughts!

comment 9y ago · link · parent

Do you have recommendations for resources about this topic? I would like to learn more about it but most of what I read until now were superficial introductions, word definitions...

Could you exemplify what you mean by: `problems that shouldn't exist in the first place`?

111.

Ask HN: Is there an IRC server or a Slack community for ML/Recommender Systems?

1 points · by codesuki · 9y ago · 1 comment

112.

Show HN: Reverse proxy for AWS ECS to make containers accessible by subdomains(github.com ↗)

4 points · by codesuki · 9y ago · discuss

comment 10y ago · link · parent

Thanks for the reply! Filled out the survey. Although I mistook the 'what are you looking for' and only chose one option, because right after the 'ok' (or similar) button popped up and I went to the next thing.

comment 10y ago · link · parent

Would be great to know more details about this as WhitneyLand already said. Like are there ways to contribute/join if you live in another country? Are they committed long term to do something or is this just PR? I don't have as much knowledge about the people as danso above.

comment 11y ago · link · parent

Nice article! I totally agree with the iterated approach to optimization (and refactoring). Since I am casually playing LoL I hope you will make it better and better ;)

Talking about optimization, I always wonder why some people have those veeery long loading times. Actually I wonder what is loaded at all. Effects or something? Of course I have no idea of the insides of the game but looking from the outside the map and models should be easily cached.

It would be great to hear more about those loading challenges!

comment 11y ago · link · parent

Try to use React without anything just to get a feel for it and then you will find out by yourself what it needed to make it work and what are its good and bad points. Working with big frameworks is too opaque and you are restricted to do what they deem good.

comment 11y ago · link · parent

I really like Flux because the one directional flow makes it really simple to reason about the code. But when I saw the dispatcher and all those switch case statements that's where they lost me.

So I built this minimal flux library on top of RxJS and until now it did everything I needed.

Maybe it's useful for someone else too.

https://github.com/codesuki/reactive-flux

comment 11y ago · link · parent

Hey, shameless plug but in case you need react integration maybe have a look at my project. https://github.com/codesuki/react-d3-components

I am using that for a dashboard and fixing the problems as they come.

I'll push a new version soon that incorporates some of the issues mentioned on github and animations.

Anyway good luck with your project!

1234