HNHacker News
TopNewBestAskShowJobs

cjalmeida

739 karma · joined February 23, 2015

Software developer. Find me at cjalmeida(at)gmail.com
submissionscomments
cjalmeida··on A promenade of PyTorch
I guess you misread me. The Dataset API is somewhat fine, much better than queues for instance. However not clear from documentation how to do more complex stuff, or how to integrate it with the rest of TF stack, specially the new Estimator API.
cjalmeida··on A promenade of PyTorch
The Estimator and Dataset API docs is so bad I'm planning on starting a blog with posts on running MNIST and a few other common datasets so others don't have to suffer.
cjalmeida··on Stride, Atlassian’s Slack competitor, opens its API to all developers
I believe it's cheaper, isn't it?
cjalmeida··on Tokyo to build 350m tower made of wood
Not really "these days". Unliveable spaces has a good longstanding tradition. Just check Le Corbusier and Niemayer works.
cjalmeida··on China’s great leap forward in science
"There are more people with genius IQ in China than people in the US".

It doesn't help that high level math teaching is restricted to pockets of excellence.

We just had a Fields medallist in Brazil. Yet we're in the bottom of the barrel when it comes to math teaching. We also share this disregard for 'nerds' as a society like the US

cjalmeida··on China’s great leap forward in science
It's not because it didn't happen yet that economists (or economic theory) are wrong. Chinese economy is growing so fast that they can essentially bail out banks (silently) whenever they want and have little impact on the budget.

It should be interesting to see how it develops when the economic eventually slows down and China is no longer the cheap manufacturing park of the world.

25y is nothing. Japan went like that for 40y, from the end of WW2 to laye 80s. Until it stopped and never recovered since. Fortunately they stopped at a high income level.

A more interesting history is that of Argentina. It was an export powerhouse that went from being a poor Spanish colony in early 1800s to having a per capita income as high as Germany or France in 1920s. After the crash all went downhill and income levels are back to mid levels.

cjalmeida··on China’s great leap forward in science
Likely Chinese researchers have they're own set of papers and incentives that replaces being able to publish at Nature due to ethical concerns.

Wonder if people with more insight would clarify how incentives work in Chinese academia.

cjalmeida··on MPEG-2 Patents Have Expired
IIRC they did patent it to use as a threat against trolls, but promise never to enforce it against fair users.
cjalmeida··on Ask HN: How to launch an algo trading side project?
And maybe trading costs.
cjalmeida··on High Salaries Are Weapons in the AI Talent War
I've seen top Kaggle competitors get some of those jobs. But I believe those are more pratictoners than researches.
cjalmeida··on High Salaries Are Weapons in the AI Talent War
If even a fraction of AI promises come to fruition, there'll be a huge demand for AI implementers in varied fields.

Thing is general AI, as developed by Google et al is usually only a starting point. There's a lot of engineering effort required to make a valuable solution out of it.

cjalmeida··on Python’s Weak Performance Matters
Every time I thought I needed einsum or similar arcane ops, I found that a Numba optimization for loop did the job.
cjalmeida··on Python’s Weak Performance Matters
I found that pandas is great for data exploration and data that you know is small (few 100s MB). Other than that, Python builtins and numpy arrays are a better alternative.
cjalmeida··on Python’s Weak Performance Matters
This. I can't emphasize enough how type hints + decent IDE is useful to productivity.

Cython is also pretty good. My tip to write fast Cython is to code as if you were writing pure C and forget higher level constructs. This way it gets translates to C almost 1:1 with all performance benefits.

Alternatively, if you do need more abstraction, you can write nice C++14 and use Cython as glue code.

cjalmeida··on Python’s Weak Performance Matters
PySpark should only be used for prototyping. It add an enormous extra overhead on operations due to serializing data back and forth between the Java and Python processes.
cjalmeida··on Python’s Weak Performance Matters
They're great and incredibly useful. And one should not forget that you can easily use them in a Python extension written in C++14 and exported using Cython or SWIG.
cjalmeida··on Python’s Weak Performance Matters
Their syntax is weird for someone coming from C-like langs (Java, C, C++, C#)
cjalmeida··on Python’s Weak Performance Matters
I'm not sure I follow what's hard about writing extensions. You can do it in modern C++ if you will and even old SWIG can generate decent bindings for you if you keep your interface sane.
cjalmeida··on Scope exit in C++11 (2012)
Java from the beginning allows you to chain exceptions and that is a core part of debugging.

In Python this is a very recent construct and few libraries use it, unfortunately.

cjalmeida··on How Rust Is Tilde’s Competitive Advantage [pdf]
Spring is the new EJB. It's bloated and always amazes me on how complex it can get when you need to implement something not provided by Spring itself.

With Java 9 modularity and lightweight libraries like Guice you can get much nimbler apps.

cjalmeida··on Google dedicates engineering team to accelerate development of WordPress
Anyone mixing content and styles/structure is doing it wrong. Making it right is literallt the sole reason static site generators exist.

I'll take HTML5/CSS and a filesystem and a few custom markup and commands any day before touching a single line of the unholy mess that is dealing with WordPress.

And not even mentioning simple hosting, secure by definition, etc...

cjalmeida··on How a Medical Catastrophe Can Bankrupt a Life
About food, thanks Ricardo for making a case in 19th century that free trade of food makes for a more efficient economy.

I wonder what would be the effect if regulations where such that one could easily import and distribute medical drugs. Or the AMA would allows foreign physicians to operate within borders.

cjalmeida··on India Wants to Give Half a Billion People Free Health Care
An alternative to life expectancy at birth is looking at the life expectancy at later years. A 40y woman in Brazil actually has about the same expected age at death as an American (~81y).

Expectancies for a 40y man, and for 20y at both ages are somewhat lower in Brazil. This is easy to explain due to deaths by violence and traffic accidents.

Funny to see that despite being chronically underfunded AND spending way less per capita than the US, the end results are similar.

cjalmeida··on Zstandard – Real-time data compression algorithm
You may want to store them uncompressed and rely on ZFS block level deduplication. It's similar to borg but may be faster.

Also, you may want to play with borg options and use lz4

cjalmeida··on The Law of the Somalis, a Nation Successful Without Any Central Government
One of the most accepted definitions of State is "the entity that has the monopoly of power in a given region"

If a clan in Somalia, an indian chief, or a drug dealer in a ghetto has the actual power to punish, he's the State - not necessarily Government.

By that logic, as people organize themselves and get larger, there will always be someone with State prerogatives.

cjalmeida··on It’s About Time for Time Series Databases
There's a balance to that. You don't need anything fancier than a Hadoop cluster to store everything. Nowadays you can get that packaged and working out of the box from a number of vendors.

Of course get that data out into analytical datasets is a whole different matter.

cjalmeida··on The U.S. will impose duties on solar equipment and washing machines made abroad
Solar cost per kWh are still prohibitive for aluminium smelting. Specially because due to the production profile you can sell the energy at much higher price than what you could get by producing aluminium.

Wind OTOH produces a lot of energy at night where demand is low and you can't really shutdown turbines - you must use the energy. Yet I'm not sure if it's feasible to run a plant in those conditions.

cjalmeida··on “Get Out of Jail Free” Cards in New York
Cops have a lot of discretionary power and, unfortunately, operates with very little information at hand. If you're for any reason in a "bad" neighborhood, specially if you're non-white having one of those may be the difference between a stop and go, or spending a few hours in a precinct.
cjalmeida··on The Death of Microservice Madness in 2018
Reading back, my post was confusing. What you wrote was what I actually meant. Each app may have it's own non shared DB.
cjalmeida··on PyTorch, a year in
Optimization and embedded devices. In theory, knowing the full graph upfront allows the framework to optimize and fuse some operations.

For embedded devices you may not have access to Python. You can precompile the graph to the target device in such cases.

Note that in practice, PyTorch is as fast or faster than Tensorflow and, and newer version allow you to "post compute" the graph and export to ONNX to allow embedded inference using Caffe2

← PreviousPage 7 of 10Next →