Better HN
topnewbestaskshowjobs
Log inSign up

efdb

3 karma · joined Sep 24, 2016 (10y ago) · 14 submissions

Submissions

1.

Russia Launches 'Vodkabot'(theregister.com ↗)

4 points · by efdb · 1y ago · discuss

comment 2y ago · link · parent

H

comment 2y ago · link · parent

J

comment 3y ago · link · parent

Did you have a look at https://rqlite.io/ ?

comment 4y ago · link · parent

Not so unfortunate according to Socrates: 'the hardest task needs the lightest hand..' ;-)

comment 4y ago · link · parent

see https://github.com/nalgeon/sqlean for 'All the missing SQLite functions'

comment 5y ago · link · parent

self documenting code ;-)

  def descending(lst):
    if len(lst) < 2:
        return False
    first, second = lst[:2]
    if first > second:
        return False
    if first < second:
        return True
    descending(lst[1:])

  def monotonic(lst):
    if len(lst) < 2:
        return lst
    result = []
    status = 0
    temp = [lst[0]]
    for v in lst[1:]:
        if v >= temp[-1] and status >= 0:
            if v > temp[-1]:
                status = 1
            temp.append(v)    
            continue
        if v <= temp[-1] and status <= 0:
            if v < temp[-1]:
                status = -1
            temp.append (v)    
            continue
        result.append(temp)
        temp = [v]
        status = 0
    result.append(temp)          
    return [list(reversed(x)) if descending(x) else x for x in     result]

comment 5y ago · link · parent

i really like the syntax, very intuitive use of ->

comment 6y ago · link · parent

In addition to this question I would like to know if you can in general say/proof that for every sequence which has some relation between the successive numbers there is a rational number whose decimal expansion is the same as the sequence.

comment 6y ago · link · parent

Indeed great and very simple interop with C libs. I have looked and played with CL, Scheme, pico lisp, Clojure and Janet but keep coming back to Newlisp, because 'it just works' (for me), documentation is very good and has a lot of inbuild functions. Regarding the C interop I made some bindings for duckdb, termbox and libui at https://github.com/luxint.

comment 6y ago · link · parent

Zuckerberg: "We're not going to change our policies or approach on anything because of a threat to a small percent of our revenue."

Facebook Mission: "Give people the power to build community and bring the world closer together."

Please update the mission statement

comment 7y ago · link · parent

how about this?: https://www.carver.earth/

electric 3 wheel car/scooter for 1-2 persons

comment 7y ago · link · parent

LAMBDA: The Ultimate GOTO http://dspace.mit.edu/bitstream/handle/1721.1/5753/AIM-443.p...