HNHacker News
TopNewBestAskShowJobs

h8hawk

184 karma · joined December 5, 2018

submissionscomments
h8hawk··on Show HN: RapidFuzz – A fast string matching library for Python
It reminds me every fast python library is not written in python!
h8hawk··on TornadoVM: Running Java on GPUs and FPGAs
Why not using DSL like http://taichi.graphics rather than create entire VM?
h8hawk··on Flutter and Dart, or how to quickly build a mobile app without losing your hair
I've worked on Dart and Flutter last year on a startupish project. I can say flutter is amazing. It got good ideas from react architecture (eg: managing state and declarative UI) and add many good things like very rich and well designed API. writing UI in language and without other markup language like XML is amazing. You also save a lot of cost to developing in parallel for multiple platform's. Dart is also a pleasant language, here are some pros and cons about language.

pros:

1- Everything is object. (no more inconsistencies like Java primitives, null and generics)

2- It has very well designed generics and you can access generic type in run time.

3- Good Type inference.

4- Has powerful facilities for asynchronous programming.(eg: async await, coroutines ,...)

5- Not overall bad or complex type system. Compare to Golang or java dart's type system is vastly superior.

some cons:

1- Everything can be null (null is also object).

2- Lack of Union and algebraic data types.

3- Lack of python's like tuple.(eg: (1,'string'))

4- I personally dislike C-style type definition and mandatory semicolon (eg: int foo=23; rather than foo : int=23 )

h8hawk··on Eiffel programming language
Yeah, according to his book OOP is mostly about inheritance (Java/c++ style OOP) rather than message passing or objects . Eiffel even support multiple inheritance.
h8hawk··on Go Syntax Implementation in Python
It would be better to emulate difer with with context manager.
h8hawk··on I love coding in C
They made a flag TYPE_CHECKING to avoid circular import in type checking. Its ugly but works.

https://docs.python.org/3/library/typing.html#typing.TYPE_CH...

h8hawk··on WTFPython – Understanding Python through surprising snippets
js also doesn't behave as you want:

  var a = 9;   
  function foo() {
      console.log(a);
      var a = 12;
  }
  foo();

  $node foo.js
  undefined
The same goes with ruby.
h8hawk··on WebAssembly becomes a W3C Recommendation
Semantic
h8hawk··on WebAssembly becomes a W3C Recommendation
Just name it! Good luck with that.
h8hawk··on WebAssembly becomes a W3C Recommendation
I think almost any thing is better than js. At least it is popular due to its actual developer's. People use it because they like it and its ecosystem was grown by them, not force of a dumb decision in 90's or company backup. Both performance and ecosystem are not characteristics of language. they are due to being the only language is being supported in browser. (hint: I won't use python for web)

Also comparing languages based on syntax and ecosystem is not very clever idea.

h8hawk··on Statically-typed error handling in Python using Mypy
Type system's of typescript , mypy and julia are far better than type syatem's of java/c#/c++/go . Null safety, type inference, sanner generics, Union types, structural typing are come to mind. I think the reason is that these type systems should catch up expressiveness of their host language.
h8hawk··on V8 adds support for top-level await
from your first link: "... , async/await is similar to combining generators and promises."
h8hawk··on V8 adds support for top-level await
No it's not. async/await's semantic is similar to coroutines, and is implemented by them.
h8hawk··on Test-driven development: A great idea hiding behind a terrible implementation?
And what is software engineering then?
h8hawk··on TypeScript 3.6
How? How it's not close to typescript? I mean what are features that python's type annotation (and mypy) lacks in comparison to typescript?
h8hawk··on Ask HN: What book to read to get a footing in CS theory?
This is a great book. I recommend learning this book with professor Porter's course on theory of computation. https://www.youtube.com/watch?v=TOsMcgIK95k&list=PLbtzT1TYeo...
h8hawk··on C++ Patterns: The Badge
They are same languages. Java style access modifiers don't exist in Smalltalk.
h8hawk··on Matlab–Python–Julia Cheatsheet
The same is true with Julia:

julia> a = 1

1

julia> function foo(x) x+ a end

foo (generic function with 1 method)

julia> foo(2)

3

julia> a = 2

2

julia> foo(2)

4

h8hawk··on Jsonnet – A data templating language
It's not. http://journal.stuffwithstuff.com/2013/07/18/javascript-isnt...
h8hawk··on Error Handling in Go (2016)
This code is inefficient.
h8hawk··on Yann LeCun, Geoffrey Hinton and Yoshua Bengio win Turing Award
Schmidhuber didn't invent LSTM Just by himself. Original papaer was published by Sepp Hochreiter and Schmidhuber.
h8hawk··on A Julia Interpreter and Debugger
The main problem with Juno is Atom . I really hope julia come up with better VSCode support. Atom editor is essentially broken. They should choose VSCode as their main editor.
h8hawk··on Alan Kay on the Meaning of “Object-Oriented Programming” (2003)
Alan Kay is Turing award winner and one of the main pioneers in OOP. I don't know how he doesn't know what he talking about.
h8hawk··on When C extensions crash: easier debugging for your Python test suite
There are areas that python is still ahead of go. Simply python having REPL to lack of REPL in Go is huge advantage. At least for me.
h8hawk··on Why Julia
Only if define OOP as what java does.
h8hawk··on Deep learning may need a new programming language
Julia is typesafe as both of c# / swift. Supporting programming in large has no meaning at all.
h8hawk··on Generics aren't ready for Go
As I understand many Go devs are former python/ruby devs. Its limited static analysis is even great compare their former languages, There are many articles which notice type safety as advantage of Go. So they have easy to learn, very fast language with good support for concurrency/parallelism (Consider what goroutines offer compare to GIL).
h8hawk··on The Data Science of MathOverflow
It won't. Scientific computing is not web development, python probably replaced by a saner language, like Julia, but js is not saner anyway. It's little messy language that becomes bytecode of browsers.
h8hawk··on The Data Science of MathOverflow
I would like keep js out of data science. Why should anyone like this?
h8hawk··on Ruby in Twenty Minutes (2006)
I don't understand why people bashing self argument. It's part of best design decisions in python. Methods in languages such Java or JavaScript always have hidden argument called 'this'. In js this actually become messy duo to binding of this. In python you can easily find this method is bind to instance of class aka 'self'. It's not always self, It could be cls for classmethods or nothing for static methods.
← PreviousPage 3 of 4Next →