HNHacker News
TopNewBestAskShowJobs

amirouche

929 karma · joined September 20, 2012

"CC" [ @1 ] APPLY
submissionscomments
amirouche··on GNU Guile 2.2.0
It's easier to declare packages recipes using guile than a mix of xml/bash/config files that other distro use.
amirouche··on GNU Guile 2.2.0
I mean to say lisp family. so Fortran counts as part of C family.
amirouche··on GNU Guile 2.2.0
> and whether a Lisp would be a better alternative to C++, syntax-wise

IMO it's an open question. There is not much statically typed lisp AFAIK.

amirouche··on GNU Guile 2.2.0
> why you'd want to change your source code programatically?

Performance, macros are executed at compile time. Also, sometime the macro is easier to write that the equivalent non-macro code.

amirouche··on GNU Guile 2.2.0
0) Guile is a GNU project

1) Guile has no Global Interpreter Lock.

2) Guile is a scheme, so it is homo-iconic cf. https://en.wikipedia.org/wiki/Homoiconicity

3) Scheme (and lisp in general) are nice to write Domain Specific Languages.

4) Guile doesn't have a particular overhead for calling simple functions which makes it possibly as fast as C.

5) Guile has a very powerful object oriented programming framework beating by far Python and Ruby OO systems.

6) Guile is optimised for immutability which makes it for safer code.

7) Guile has Guix which has 'guix pack' command which is awesome cf. http://git.savannah.gnu.org/cgit/guix.git/tree/doc/guix.texi...

8) Guile has a lot of supporters cf. https://lists.gnu.org/mailman/listinfo/guile-user

9) Guile has awesome maintainers

Also, there is not a lot of packages. But programs written in Guile or using Guile tend to be of higher quality, cf. http://guildhall.hypermove.net/ and http://sph.mn/content/3e73

amirouche··on GNU Guile 2.2.0
yes.
amirouche··on GNU Guile 2.2.0
You mean a jit compiler. There is still not AOT compiler for GNU Guile AFAIK. Except janneke work.
amirouche··on GNU Guile 2.2.0
yes! String representation for instance, lake of utf-8 filenames support (at least there is bug) but nothing that can't be fixed.
amirouche··on GNU Guile 2.2.0
is lisp older than C?
amirouche··on The Mumps Programming Language
Some MUMPS based software use the EAV model cf. https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80...
amirouche··on Show HN: Forward − a scheme front end framework inspired from elm
In the most recent version create-app procedure looks like the following:

  (define (create-app+ container init view)
  (let ((state (init)))
    (letrec ((spawn (lambda (proc)
                      (set-timeout (lambda () (proc state spawn)) 1000)))
             (make-action (lambda (action)
                            (lambda args
                              (let ((new (apply (action state spawn) args)))
                                (set! state new)
                                (render)))))
             (render (lambda ()
                       (set! container (patch container
                                              ((sxml->h* make-action) (view state)))))))
      render)))
Basically it says that instead returning two values (first value being the new state and the second value being the intended side effect) it will only return the new state. But, it will take another argument with the state called spawn. The signature of actions is now state -> spawn -> dom-event -> state. Spawn will schedule the lambda passed as argument. I will change spawn to look more like apply, so that it takes the arguments of the lambda as argument. This will make testing easier.
amirouche··on Ask HN: How to implement an NLP grammar parser for a new natural language?
Nobody mentionned SyntaxNet or LinkGrammar. If you did not read the article from Chomsky about the two ways of doing AI you should read it. Basically it says there is statistical methods and logic methods in AI. Most of NLP libraries of today use the statistic approach. The other, the logic rules based approach was the most popular before now. Anyway, that's what does Link Grammar. I recommend you start with the introduction https://amirouche.github.io/link-grammar-website//documentat... to get a feeling of what it means to deliver meanings to sentences.

Also nowdays, word2vec is unrelated to the understanding of grammatical constructs in natural languages. It's simply said a coincidence or co-occurance of words. Grammartical interpretation of a sentence must be seens as a general graph whereas word2vec operate on the linear structure of sentences (one word after the other). If word2vec had to work on grammatical constructs it should be able to ingest graph data. word2vec works on matrices where the graphical representation of the grammar of sentence (POS tagging, dependencies, anaphora, probably others) is graph otherwise said a sparse matrix or a matrix with a big number of dimensions. (It seems to me machine learning is always about dimension reduction with some noise).

I am quite ignorant about the literature on the subject of machine learning operated to/from graphical datastructures.

amirouche··on Ask HN: How to implement an NLP grammar parser for a new natural language?
Me too. But I've not diven into it yet. I know how to speak tamazight but not how to spell. I am under the impression that I could simply start to translate a dictionary into code...
amirouche··on Ask HN: How to implement an NLP grammar parser for a new natural language?
This is supervised algorithm, it requires that you annotate a lot of existing text so that the algorithm knows how to annotate "new" sentences.

It statistic based.

amirouche··on Ask HN: Needs advice on learning NLP
What is the book you are reading?
amirouche··on The importance of upvoting
That's how digg worked, it did not work well for them.
amirouche··on Ask HN: Which developers do you closely follow?
Asher from strong.ai
amirouche··on The merging of machine capability and human consciousness is already happening
Asimov novels are good in this regard.
amirouche··on Show HN: Realtime Hacker News Summarization Using Machine Learning
NLTK has no machine learning algorithm AFAIK
amirouche··on Show HN: oh⋅my⋅palette − palette color maker written in scheme
direct link: https://amirouche.github.io/ohmypalette/
amirouche··on Ask HN: Who needs contributors? (November 2016)
Sotoki (by kiwix) [https://github.com/kiwix/sotoki/tree/wiredtiger]

The project aims at making stackexchange website available offline.

Fix the memory leak that was found in wiredtiger branch.

Python

GPL3+

amirouche··on Ask HN: What do you regret in life?
Not doing more math. It seems like programming is very easy to learn whereas math science is very difficult.
amirouche··on Building your bot's brain with Node.js and spaCy
Direct link to documentation: http://kengz.me/aiva/#aiva
amirouche··on Ask HN: What do you as a developer want from a desktop Linux distro in 2017?
Functional package management is the feature of the XXIe century (like guix and nix). Knowing that I can tweak my system and be able to reboot in the previous configuration is very pleasent.
amirouche··on The legacy of Pieter Hintjens
I used to not understand this tip from http://cultureandempire.com:

There is. «TIP: When there is something that people are asking for, and you don't know how to do it yourself, announce publicly that it is impossible." Or, propose a solution that is so awkward hopeless that it annoys real experts into stepping up.»

amirouche··on Too Many Tools and Frameworks (2015)
Angular (prolly the same of Angular2) is that it's magical hiding the underlying browser mechanic, DOM manipulation. It's is hidden below layers of fancy syntax. Whereas with reactjs you have a kind of steap learning curve in the sens that you have to grok an ecosystem of diverse communities (ex: gulp, flux, webpack) but for Javascripters that's almost part of the regular shore when you are used to build you own framework. AND ReactJS reuse most concepts from vanilla Javascript and DOM.
amirouche··on Too Many Tools and Frameworks (2015)
First you can use reactjs alone without a flux architecture.

> Why are frameworks considered such a good thing

The only thing nice about framework is that they make the main workflow obvious. But things becomes scary when you walk on the wild side (backed by experience with Django and Django RESTframework)

The problem with reactjs is that facebook was using reactjs and its "architecture" for big apps and now they try to make it work in a more general context.

> in web UI programming that widely used and admired libraries end up being called "frameworks" as a term of respect?

Backbone is framework, saying it's a library because you can use only the collection model and use whatever method you want to fetch your data or whatever template language or bind events yourself is like saying you can replace the URL routing or template language of Django on your own. Doable but not recommended.

amirouche··on Too Many Tools and Frameworks (2015)
There is a clear distinction between a framework and library. AFAIK a library is focused to solve a particular problem for instance routing, data validation, i18n, state management, view rendering (like templates systems), data models etc... On the other hand framework try to tackle a set of related problems into a coherent/logical workflow. For instance there is not a single library that can handle by itself the issue of isomorphic apps. Angular is a framework, reactjs is a library but http://reactboilerplate.com/ is framework using reactjs.

I think backbone is framework not a library it tackles several issues (class system, views, and middle end) and it does it badly but that's a topic of ~another post~ the past.

Historically Javascript community has favoured the do-it-yourself framework hence or because there is a lot of libraries you can choose from or because the needs of everyone are so different that's it's difficult to create a miningful framework. Mind the fact that Google previous "framework" named Google closure was a stdlib kind of framework compared to the competition of MV* framework like emberjs or angular it did not force a given workflow.

amirouche··on Show HN: Scheme todomvc inspired from reactjs/redux using snabbdom
Thx! I forgot to use the `key` paramters which is not bound in scheme yet...
amirouche··on Pytextrank – A pure Python implementation of TextRank
Reading the source before running it is a good thing. Who knows if the author has put backdoor in the program?
← PreviousPage 8 of 17Next →