Giter Site home page Giter Site logo

sundown-ffi's Introduction

THIS REPOSITORY IS DEPRECEATED.

Please use https://github.com/torch/torch7

For install scripts, please look at: https://github.com/torch/ezinstall

Torch7 Library.

Torch7 provides a Matlab-like environment for state-of-the-art machine learning algorithms. It is easy to use and provides a very efficient implementation, thanks to an easy and fast scripting language (Lua) and a underlying C implementation.

In order to install Torch7 you can follow these simple instructions, but we suggest reading the detailed manual at http://www.torch.ch/manual/install/index

Requirements

  • C/C++ compiler
  • cmake
  • gnuplot
  • git

Optional

  • Readline
  • QT (QT4.8 is now supported)
  • CBLAS
  • LAPACK

Installation

$ git clone git://github.com/andresy/torch.git
$ cd torch
$ mkdir build
$ cd build

$ cmake .. 
OR
$ cmake .. -DCMAKE_INSTALL_PREFIX=/my/install/path

$make install

Running

$torch
Type help() for more info
Torch 7.0  Copyright (C) 2001-2011 Idiap, NEC Labs, NYU
Lua 5.1  Copyright (C) 1994-2008 Lua.org, PUC-Rio
t7> 

3rd Party Packages

Torch7 comes with a package manager based on Luarocks. With it it's easy to install new packages:

$ torch-rocks install image
$ torch-rocks list
$ torch-rocks search --all

Documentation

The full documentation is installed in /my/install/path/share/torch/html/index.html

Also, http://www.torch.ch/manual/index points to the latest documentation of Torch7.

sundown-ffi's People

Contributors

andresy avatar btnc avatar linusu avatar nicolasvasilache avatar samehkhamis avatar soumith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sundown-ffi's Issues

use the Android NDK compile got error

Using the Android NDK compile meet the error:

/home/leon/opt/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: fatal error: -soname: must take a non-empty argument
collect2: error: ld returned 1 exit status
CMakeFiles/sundown.dir/build.make:276: recipe for target 'libsundown.so' failed
make[2]: *** [libsundown.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sundown.dir/all' failed
make[1]: *** [CMakeFiles/sundown.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Impossible to install on OS X 10.9

I'm unable to install sundown-ffi on my Mac (OS X 10.9). Any idea of what's happening here?

atcold@AlfMAC ~ $ luarocks install sundown
Installing https://raw.github.com/torch/rocks/master/sundown-scm-1.rockspec...
Using https://raw.github.com/torch/rocks/master/sundown-scm-1.rockspec... switching to 'build' mode
Cloning into 'sundown-ffi'...
remote: Counting objects: 30, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 30 (delta 2), reused 12 (delta 0)
Receiving objects: 100% (30/30), 40.96 KiB | 0 bytes/s, done.
Resolving deltas: 100% (2/2), done.
Checking connectivity... done.
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/buffer.c -o src/buffer.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/markdown.c -o src/markdown.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/stack.c -o src/stack.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c html/houdini_href_e.c -o html/houdini_href_e.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c html/houdini_html_e.c -o html/houdini_html_e.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c html/html.c -o html/html.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c html/html_smartypants.c -o html/html_smartypants.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -o libsundown.so -L/usr/local/lib src/autolink.o src/buffer.o src/markdown.o src/stack.o html/houdini_href_e.o html/houdini_html_e.o html/html.o html/html_smartypants.o
Warning: Directory 'doc' not found

Error: Failed loading manifest for /usr/local/lib/luarocks/rocks: cannot open /usr/local/lib/luarocks/rocks/manifest: No such file or directory -- corrupted local rocks tree? Cannot install new version.

BUG: ascii.lua:318: cannot convert 'nil' to 'int'

Hi, I'm writting test scripts for debian package lua-torch-sundown, and by chance I found this bug.

Shell code snippet:

echo 'level 3'
luajit -e "sundown = require 'sundown'; sundown.renderASCII[[
THIS IS TITLE
===

# H1

* item 1  
* item 2  
* item 3  

## H2

1. item 1  
2. item 2  
3. item 3  

### H3

\`\`\`
shell> this is some code example
\`\`\`

#### H4

and lets see if \`split line\` works

---

this is _style1_

this is *style2_

Sundown.renderASCII seems to be working.
]]"

result:

level 3
luajit: /usr/share/lua/5.1/sundown/ascii.lua:318: cannot convert 'nil' to 'int'
stack traceback:
    /usr/share/lua/5.1/sundown/ascii.lua:318: in function </usr/share/lua/5.1/sundown/ascii.lua:315>
    [C]: in function 'sd_markdown_render'
    /usr/share/lua/5.1/sundown/ascii.lua:392: in function 'preprocess'
    /usr/share/lua/5.1/sundown/ascii.lua:584: in function 'renderASCII'
    (command line):34: in main chunk
    [C]: at 0x004048b0

Bug in ``` indentation

When there is ``` code, only the first line has an additional white space.
The following lines are totally left-oriented without margin (see below).

Tensors of different types

Actually, several types of Tensor exists:
 ByteTensor -- contains unsigned chars
CharTensor -- contains signed chars
ShortTensor -- contains shorts
IntTensor -- contains ints
FloatTensor -- contains floats
DoubleTensor -- contains doubles 

In my opinion all code within ``` should have 3 spaces of indentation and a '\n' at the beginning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.