Search:

Type: Posts; User: pal666; Keyword(s):

Page 1 of 5 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    67
    Views
    7,147

    first and third examples have total complexity of...

    first and third examples have total complexity of O(n*k) where k is number of different characters
    and i am sure you put third one last because its loop body is much uglier than c++ counterpart ...
  2. Replies
    67
    Views
    7,147

    well, i can't be sure whether you tried to...

    well, i can't be sure whether you tried to iterate with quadratic complexity in second example or not, because it clearly does not work (you are trying to index one array with another). but it could...
  3. Replies
    67
    Views
    7,147

    s.size ( ) - * boost :: max_element ( s | boost...

    s.size ( ) - * boost :: max_element ( s | boost :: adaptors :: transformed ( std :: function < std :: size_t ( char ) > { [ & ] ( char c ) { return boost :: count ( s, c ); } } ) );
  4. Replies
    67
    Views
    7,147

    first of all, boost is perfectly standard c++....

    first of all, boost is perfectly standard c++.
    second, i don't think i immediately understood, how python example was supposed to work.
  5. Replies
    67
    Views
    7,147

    you seem to not understand the difference between...

    you seem to not understand the difference between two iterations(which i explicitly mentioned) and N iterations, where N is number of characters in input

    no, you don't
    if you are using 8 bit...
  6. no it is not. if your lovely init does not...

    no it is not. if your lovely init does not provide this interface then it is bug in your init

    but we already agreed that active init system does not matter. interface can be provided on top of any...
  7. it is a bug in some people's brains what makes...

    it is a bug in some people's brains what makes them think that some software depends on being started by any particular init system. in reality software depends on some runtime interfaces which it...
  8. ok, so you are just some moron, who thinks he...

    ok, so you are just some moron, who thinks he understands shell but doesn't understand plain c
    i.e. you are not really a programmer, so you don't get to dictate how things must be done
  9. bser is you because to user it does not fucking...

    bser is you because to user it does not fucking matter whether it pid1 crashed, or bash script if system is unusable anyway
    i personally developed init in terms of building distribution, so i know...
  10. that means no fucking shell scripts executing...

    that means no fucking shell scripts executing binaries from all of fucking /usr/bin

    it is hard to argue with crazy people living in their own fantasy world. systemd already is very basic init 1...
  11. you certainly live on a tree because systemd...

    you certainly live on a tree because systemd accepts sysv init startup scripts
  12. https://www.google.com/search?q=systemd+segfault#q...

    https://www.google.com/search?q=systemd+segfault#q=sysv+init+segfault
    two orders of magnitude more hits
    main problem of linux is bullshitspreaders like you
  13. Replies
    67
    Views
    7,147

    but you need to iterate over string only once....

    but you need to iterate over string only once. while python-damaged people write code, which iterates over string in for loop and then for each iteration iterates again in s.count()
  14. Replies
    67
    Views
    7,147

    first, there is no real difference from user pov...

    first, there is no real difference from user pov between segfault and any other fatal error. and static typing automatically finds huge number of fatal errors during compilation and not during use in...
  15. Replies
    67
    Views
    7,147

    my "like that" related to syntax. i hope you...

    my "like that" related to syntax. i hope you aren't going to insist on using variable before introducing it.
    http://www.boost.org/doc/libs/1_56_0/libs/range/doc/html/range/introduction.html
  16. Replies
    67
    Views
    7,147

    you can write like that in c++. nobody does it,...

    you can write like that in c++. nobody does it, because it is much(like in O(n^2) vs O(n)) slower than iterate once over string and once over counts.

    as someone, who has more experience, i can...
  17. Replies
    67
    Views
    7,147

    if you had some brain, you would think for a...

    if you had some brain, you would think for a moment, why game engine devs use c++ and not python. and they are hugely constrained by speed of _development_.
    and most of them are using all elements...
  18. Replies
    67
    Views
    7,147

    c++'s core spec is about two times bigger than c....

    c++'s core spec is about two times bigger than c. and same as c# and java, so please stop spreading bullshit
    there was good parts book about javascript earlier and somehow millions of not really...
  19. Replies
    67
    Views
    7,147

    in both theory and practice, jit can't do better...

    in both theory and practice, jit can't do better than aot, because you don't have enough resources to do heavy optimization during runtime. using jits produces slow memory hogs. even google...
  20. it became clear during default init selection...

    it became clear during default init selection process
Results 1 to 20 of 100
Page 1 of 5 1 2 3 4