huyegn

Joined 17 years ago

Karma
144
Submissions
35
Member since
Aug 6
computer vision, visual search

https://everyhue.me

View on Hacker News

Recent submissions

Comment · 1 year ago
Comment · 2 years ago
please do update us
Comment · 2 years ago
What did you do to improve?
Comment · 2 years ago
Swift for all its niceties still suffers from a habit of inherently tying its conventions to Apple and its "appleisms" when coding. Tasks that should be relatively straightforward to do e.g. iterating through a file line-by-line still requires an awkward amount of code. It's especially noticeable when compared to languages like Go or Python:

https://forums.swift.org/t/text-streaming-in-standard-librar...

While these things are not difficult to solve with some minor additions to the standard library and documentation that emphasizes some basic conventions, the fact that we're on Swift6 and things like this aren't just available speaks to how much further the community needs to evolve to get the language ergonomics right for non apple-y things.

Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
That's an interesting idea and I get the motivation. I often wonder if we're already able explain predictions. There are things like gradcam to determine which inputs caused which activations. It's just that the explanations aren't very understandable or satisfying from a human perspective.
Comment · 6 years ago
Comment · 12 years ago
Comment · 12 years ago
Comment · 15 years ago
To get around the problem of child subprocesses spewing out too much output and blocking the parent process, one can provide an open file handle to the stdout/stderr arguments of the Popen call. I've ran into this many times and this solution has reliably worked for me every time. This could be documented better in the Python docs.

For quick tasks and scripts, I've found subprocess.check_call, and subprocess.check_output with shell=True are great tools for spawning subprocesses and quickly grabbing output. They're pretty straightforward to use.

Comment · 15 years ago
We're also looking into getting a designer for our site, I'd be interested in hearing how you managed the project.

When you started with your designer, how did you convey the type of look and feel that you wanted to give your business? Did you point them to other similar looking sites or was he/she the one that pushed forward the final vision and design (which BTW looks great)?

Comment · 15 years ago
Comment · 15 years ago
If you liked Kernighan and Ritchie's "The C Programming Language", then you'll love "Programming In Lua". The first edition is available online here:

http://www.lua.org/pil/

Like K&R, it's style is colloquially terse, yet each sentence is chock full of information. It's a great book for someone who's already coming from another language like Python.

If you're into graphics programming, then http://love2d.org/ would be the perfect vehicle for you to get into Lua while you read PIL.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton