HNHacker News
TopNewBestAskShowJobs

co_dh

89 karma · joined December 31, 2013

submissionscomments
co_dh··on Show HN: VisiData – vi for data
I'm glad that I'm using Emacs, and it has csv mode, sql intergration, and anything you want.
co_dh··on 50 Years of APL Datatypes (2016) [pdf]
Can you provide a link to Brian Kernigan's APL's source code? Can't find it by google. Thanks.
co_dh··on Announcing TypeScript 2.1
I feel that the lookup types and mapped types are dependent types, am I right?
co_dh··on Open Salaries: Outcomes
First, are you sure that everybody is paid according to that table? Or it's just a guide line? Secondly, if it's true, then the salary is not related to performance, and I would image people just stay there, the longer the higher salary.
co_dh··on Never accept a counter-offer
This line makes my day: "Vick, I now make more than you do. What's your counter offer?"
co_dh··on Computing primes with CSS
You can remove all non primes in the selector, like below

span:nth-child(2n+4), span:nth-child(3n+6), span:nth-child(5n+10), span:nth-child(7n+14), span:nth-child(11n+22), span:nth-child(13n+26), span:nth-child(17n+34), span:nth-child(19n+38), span:nth-child(23n+46), span:nth-child(29n+58), span:nth-child(31n+62),

co_dh··on How I spent two weeks hunting a memory leak in Ruby (2015)
I had similar experience of finding memory leak in Python. It's a 64 G server, but we load everything from database to memory. I didn't success.

This experience made me question myself: is it wrong to create a lot of objects in memory and let them reference each other, and hope Garbage Collector to magically work?

If instead of object, we just put data into memory more organized as a (column) database, then we don't need GC anymore.

OOP made programming easier, by modeling real world as object. At the same time, it made memory management harder, since it's not nature to the hardware's memory model: a linear array of memory cells.

I wish in future, there is a place for this paradigm of in memory database model of programming.

co_dh··on China has built an elevated bus that travels above car traffic
I think Black Audi means nothing these days. I would partially agree with your first sentience if it's 10 years ago and in small city. But today in big cities, definitely no.
co_dh··on China has built an elevated bus that travels above car traffic
I have been in China for 30 years, I would say this is not true. a.) is definitely wrong, but I agree with b and c. and I do not totally agree with d.
co_dh··on React Native for Ubuntu
React is not a framework. According to it's home page, it's: A JAVASCRIPT LIBRARY FOR BUILDING USER INTERFACES.
co_dh··on Surround 360 is now open source
Is it virtual casino in your mind first? My first thought is virtual porn.
co_dh··on Ember.js 2.7 and 2.8 beta released
I used Ember once, took over an Ember project from a very good Ember programmer. I found I have to duplicate the models from database, to ORM in backend, and Ember. Everytime I have to modify/add a database column, I have to modify 3 places. So I end up get ride of Ember and use Flask-Admin only. Even better, I get ride of the ORM in Flask too, using reflection. Then my code is 3 times less, and I feel happy.
co_dh··on LLVM Programmer’s Manual
I don't agree neither :). Exceptions don't necessarily lost context. At least in Python. In my previous job, whenever a python exception raise, the code will catch it, with values of each variable, formatted in a beautiful html, and send as an email. You can never overestimate how much time it has saved us to debug. Go's approach to error handling remind me of the old COM days, while you handle error after each function call. I'm glad it's no longer popular.
co_dh··on China is challenging the idea that censorship thwarts online innovation
I think this Chinese guy means machine, instead of tech.
co_dh··on Table-oriented programming (2002)
kdb+/q is table oriented, or array oriented.
co_dh··on Table-oriented programming (2002)
Can you provide more details on how do you baking Excel tables into a memory-mapped block? did you used memory mapped file as in linux? or you manually synchronize between excel and a memory block in game engine?
co_dh··on Reason: A new interface to OCaml
I've been programming in Python for about 10 years and still love it.
co_dh··on Does power really corrupt?
really? I write javascript(typescript) for living.
co_dh··on After a year of using Node.js in production
welcome back :)
co_dh··on Italian court rules food theft 'not a crime' if hungry
I'm glad that stealing beer is still a crime :)
co_dh··on ThingieQuery: $19 SQL IDE for Excel
Am I misunderstood somewhere? Did you provide a sql interface to excel? are you asking a DBA to use excel instead of a real database?

For me, it seemed to be more interesting to provide an excel interface to database.

co_dh··on React v15.0
I have the opposite experience.
co_dh··on Synchronizing Verilog, Python and C
First, I've never programmed Verilog before. But I see this breaks the DRY principle. If I'm in your position, I may put the information into data, and interpreter the data in Verilog, C, python.

Again, I don't have Verilog experience before and I might be totally wrong.

co_dh··on The Road to Running Haskell at Facebook Scale [video]
I'm really excited about this. If facebook is able to use it in production, then Haskell is no longer an academic language. I would tell my boss that we can use Haskell because facebook is using it:)

BTW, the stackage project have resolved a big problem (Cabel hell) in Haskell ecosystem, and I start to use haskell again.

co_dh··on A simple explanation of Chinese characters
As a Chinese, I can tell you that there are only 3000 common Chinese characters. My nephew begin to read news paper at grade 4 ( 10 years old). I begin to read very complicate novels at 13. A good thing about Chinese character is: I can easily read laws if I want, because there is not much new vocabulary to read. Tone is not a problem for baby. They can grasp it from day one when they start to speak.( I have 3 kids) There is a lot logic inside Chinese characters.
co_dh··on How to Make Python Run as Fast as Julia
+1
co_dh··on How to Make Python Run as Fast as Julia
I don't agree that speeding up your code is your compiler's job. If that is true, there is no point to learn data structure and algorithm.
co_dh··on Remove Ex-Mode from Neovim
as a developer, I think it's good to remove some rare feature to reduce code complexity.

Also it's good to make this kind of feature as plugin, so it will reduce the code complexity.

co_dh··on Guide: Writing Testable Code [pdf]
I stop right at the "class". How possible can you test an OO class? Try some functional program, they are designed to be testable.
co_dh··on ASCII Delimited Text – Not CSV or TAB delimited text
How do you enter them ? in console, in editor? Since they are invisible, how do you find if you have entered a wrong character?
← PreviousPage 3 of 3