Better HN
topnewbestaskshowjobs
Log inSign up

enum

514 karma · joined Apr 7, 2009 (17y ago) · 96 submissions

https://github.com/arjunguha
Submissions

comment 3y ago · link · parent

This was used for PII detection and will be public soon.

It could have other uses, but its not what you want code generation. For code generation, use StarCoder or StarCoderBase.

comment 3y ago · link · parent

Also note that StarCoder itself is open (but not replit-finetuned).

comment 3y ago · link · parent

StarCoder is a 15B LLM for code with 8k context and trained only on permissive data in 80+ programming languages.

Release thread: https://twitter.com/BigCodeProject/status/165417494197606811...

Model: https://huggingface.co/bigcode/starcoder

Paper: https://drive.google.com/file/d/1cN-b9GnWtHzQRoE7M7gAEyivY0k...

Also available in HuggingChat: https://huggingface.co/chat

64.

BigCode Project Releases StarCoder: A 15B Code LLM(huggingface.co ↗)

185 points · by enum · 3y ago · 37 comments

comment 3y ago · link · parent

Give this notebook a shot:

https://github.com/arjunguha/BigCode-demos/blob/main/bigcode...

A GPU will help, but I found it passable on a CPU as well.

comment 8y ago · link · parent

Stopify is a JS-to-JS compiler. It performs a lot better than a JS-in-JS interpreter could.

comment 8y ago · link · parent

All the selectable languages compile to JavaScript. Stopify takes that JavaScript output and makes programs stoppable, steppable, etc. Therefore, each demo is a composition of two compilers: (1) a third-party X-to-JS compiler and (2) Stopify, which compiles JS to stoppable JS.

comment 8y ago · link · parent

Fixed and added a little FAQ. :)

comment 8y ago · link · parent

It depends on the source language. We have done extensive benchmarking. For example, on Python the median slowdown is 1.4x. PyJS doesn't use all of JavaScript's features and we can exploit that to improve performance. Our worst slowdown is when the source language is JavaScript itself because we can't make simplifying assumptions. (Median slowdown is 20x.)

These are slowdowns on a cheap ChromeBook. We also have results from the four major browsers on a desktop machine.

comment 8y ago · link · parent

We'll put more technical details on the website very soon. Since you asked for an abstract, let me reply via DM on Twitter. (I'm @arjunguha)

comment 8y ago · link · parent

Hi @amasad,

In collaboration with @jpolitz, we've been working on way to debug programs written in arbitrary source languages in the browser that you may find interesting. You can find a technology demo here:

http://www.stopify.org

Stopify uses existing compilers that produce JavaScript (e.g., ScalaJS, BuckleScript, etc.) We've tested with ten languages, five of which are on the website. There are three key pieces to Stopify: (1) first-class continuations for JavaScript (warts included), (2) browser-specific optimizations, and (3) language-specific optimizations (i.e., many compilers emit a sane subset of JavaScript that Stopify can exploit to improve performance). We've conducted a pretty extensive performance evaluation that we can also share. E.g., we've found that PyJs + Stopify can be as fast as Skulpt with suspensions.

comment 13y ago · link · parent

This abstract suggests that the bound may be lower:

http://jointmathematicsmeetings.org/amsmtgs/2160_abstracts/1...

From http://jointmathematicsmeetings.org/meetings/national/jmm201...

73.

Elm at Prezi(engineering.prezi.com ↗)

175 points · by enum · 13y ago · 100 comments

comment 15y ago · link · parent

Cool stuff. I think it's similar to custodians in Racket (the artist formerly known as PLT Scheme):

http://docs.racket-lang.org/reference/eval-model.html#(part....

comment 15y ago · link · parent

> In Haskell, when I read an API, I know no effects lurk behind the pure type signatures.

I wonder how often unsafePerformIO : IO 'a -> 'a is employed

comment 15y ago · link · parent

For example:

http://www.cs.ucla.edu/~kohler/class/10f-aos/

comment 16y ago · link · parent

On current releases of PLT Scheme, you can use:

#lang plai

to write the programs in the book, instead of using PLaneT.

comment 16y ago · link · parent

Yep, reactive programming. You can do this in JavaScript too: http://www.flapjax-lang.org/

comment 16y ago · link · parent

"Practical Foundations of Programming Languages", available online:

http://www.cs.cmu.edu/~rwh/plbook/book.pdf

comment 16y ago · link · parent

I believe it's feature size: http://en.wikipedia.org/wiki/Photolithography

comment 16y ago · link · parent

UW has a terrific CS program. You will learn a lot.

comment 16y ago · link · parent

Based on Fig. 1 and the text describing it, the study seems to conclude that imperative programming is unlike anything students have seen before.

"all had enough school mathematics to make the equality sign familiar."

Sure, but = in imperative code is nothing like = in math. It's hardly surprising that it is confusing.

comment 16y ago · link · parent

grad school is a 5+ year commitment. Launching a startup probably takes less time. Also, grad. school is not about entrepreneurship. Perhaps there are transferable skills, but research has different goals.

comment 16y ago · link · parent

DrScheme

comment 16y ago · link · parent

Is Python really pulling a syntactic trick?

I think < is simply left associative: True < 4 is True.

Similarly, I think > is right associative. (50 > 30) > 10 does not hold, but 50 > (30 > 10) holds.

comment 16y ago · link · parent

You don't have to learn Emacs. Also, Common Lisp isn't the only option. Try Scheme, this one: www.drscheme.org.

comment 17y ago · link · parent

Misses laziness, which is arguably the most confusing part.

comment 17y ago · link · parent

I think :set wildmenu is great, especially for relative newbies such as myself:

  command! CD cd %:p:h " change to current buffer's directory
  set incsearch " Incremental search
  set hlsearch " Highlight search
  set guifont=Bitstream\ Vera\ Sans\ Mono\ 12
  set nowritebackup " no stupid backup files
  set noswapfile    " no stupid recovery files
  set wildmenu " it's wild
  set visualbell
  set fileformat=unix

comment 17y ago · link · parent

It's great what you can do with first-class functions. But, without tail calls, simple uses of the Y combinator will run out of stack space.

comment 17y ago · link · parent

Michael Spivak's Calculus text:

http://www.amazon.com/gp/product/0914098918

1234