Live data from Hacker News

Viewing profile — Yttrill

Yttrill

HN member
Joined
Mon, Dec 24, 2012, 12:55 AM UTC
HN karma
80
Public activity
27 items

About Yttrill

No profile information was provided.

Recent public activity

  1. story
  2. comment
    Comment #17169626

    Really? Thats not my understanding, its much smarter than that. Goroutines steal memory from the current pthread machine stack, that is, the machine stack. The problem calling C fr…

  3. comment
    Comment #17169523

    C++ and Felix obviously have the lowest overhead .. namely zero in both cases :-)

  4. comment
    Comment #14747598

    Modules would be very hard to make work in C++, there's way too much entanglement at all levels. Of course the rot actually started with the ANSI C committee when it introduced typ…

  5. comment
    Comment #5265341

    Claims 3 and 6 lack a true understanding of Ocaml. The compiler's error messages are exceptionally good in most cases. Syntax errors without detail are a product of the parsing tec…

  6. comment
    Comment #5170707

    There certainly are languages that can provably ensure all cases are handled. Have a look at ATS.

  7. comment
    Comment #5126645

    This does reflect very sadly on schools, and shows up when trying to explain things to programmers used to conventional languages, especially if you're trying to explain why C is f…

  8. comment
    Comment #5082377

    I'm afraid the argument that C+ASM is always faster is flawed in reality. Pure ASM, with a bit of C thrown in, maybe, but this is just as impractical for complex codes as C itself …

  9. comment
    Comment #5058495

    Felix is built on an extensible parser which uses EBNF for the productions. The Felix "language" is defined in the library by such productions. The action codes of the grammar are …

  10. comment
    Comment #5018600

    Basically this is to support "expression" like syntax such as people are used to in C, for example i++ and x=y are expressions with side effects in C and a lot of C idioms depend o…

  11. comment
    Comment #5018587

    One needs closures, that is, functional values bound to some context, for higher order functions (HOFs). For example in C++ much of STL was pretty useless until C++11 added lambdas…

  12. comment
    Comment #5012102

    As a whole program analyser, Felix does a lot of optimisations. The most important one is inlining. Felix pretty much inlines everything :) When a function is inlined, there are tw…

  13. comment
    Comment #5012062

    This is a hard question to answer. In general the emphasis changed from getting the compiler to work, and to generate efficient code, to using the technology to implement a rich se…

  14. comment
    Comment #5011947

    That's correct. However, somewhat problematically, Felix considers the tuple int * int to actually be an array int ^ 2. It's not entirely clear this "automatically applied isomorph…

  15. comment
    Comment #5011875

    The proc/gen/fun distinction isn't entirely an optimisation issue, its a semantic one, heavily related to the implementation model. In principle fun and gen use the machine stack f…

  16. comment
    Comment #5011821

    Did I mention Felix is based on Cat-e-gory theory and named for the inventor of one-sided donuts?

  17. comment
    Comment #5011563

    Macbook Pro: ~/felix>flx --test=build/release --static mt ~/felix>time ./mt real 0m0.004s user 0m0.001s sys 0m0.002s ~/felix>time ../lua-5.2.1/src/lua mt.lua real 0m0.006s user 0m0…

  18. comment
    Comment #5011310

    There is an alternative: a quick start GUI mini-IDE which allows you to type in and edit the code and press a button to run it. Such tools are mandatory on Windows anyhow: Ocaml an…

  19. comment
    Comment #5011199

    for var i in 1 upto 15 do println$ match i % 3, i % 5 with | 0,0 => "Fizz-Buzz" | 0,_ => "Fizz" | _,0 => "Buzz" | _ => str i endmatch ; done Did I get the job?

  20. comment
    Comment #5010946

    Yes, provided you collect all the required library headers and either sources or binaries: the generated C++ still requires run time libraries and the top level driver if it's a pr…

  21. comment
    Comment #5010789

    Python and Lua are both compiled languages, almost all languages are compiled these days. They compile to bytecode rather than native machine code, then run an interpreter which ma…

  22. comment
    Comment #5010755

    Two choices dictate a terminator: (a) free form 1D language like C vs 2D language like Python or Haskell, and, (b) support for assignment statements x = y and the like as in C vs a…

  23. comment
    Comment #5008658

    I am sorry about this problem. I have had a look and I understand what is happening but not how to fix it. Python 3.2 does not provide a timeout in the subprocess module. fbuild is…

  24. comment
    Comment #5008082

    It works with this: ~/felix>python3 Python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:25:50) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin and also on Linux with this: ska…

  25. comment
    Comment #5008009

    The webserver, which is written in Felix, translates a particular format called "fdoc" to create the tutorial and slides, including embedded colourised hyperlinked Felix and C++ co…