Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

All languages should compile to C/LLVM/JVM

Name: Anonymous 2015-07-30 9:03

All languages should just be syntactic sugar for an intermediate language that's mature enough to have optimizing compilers

Name: Anonymous 2015-07-30 9:44

I agree

Name: Anonymous 2015-07-30 11:13

The optimizing compiler is able to optimize human code not program generated code.

Name: Anonymous 2015-07-30 11:23

>>1
Why did you included llvm but not gcc?

Name: Anonymous 2015-07-31 5:47

>>4
GCC's internal compiler format is "intentionally obfuscated". It's exceedingly difficult to study what it is and how to use it if you don't dedicate your life to it as the GCC programmers have. LLVM on the other hand was designed to be modular and reusable by anybody. That team had the benefit of learning the lessons of GCC.

Name: Anonymous 2015-07-31 6:21

Name: Anonymous 2015-07-31 14:24

>>6
I emphasized the "intentionally obfuscated" not because the GCC team had conspired in history to do something like, "hahaha, you know what would be funny, let's do the GCC internal representation so complex that nobody could possibly touch it". This was actually a natural consequence of their work that they didn't invest too much effort to engineer a better way for that specific issue.

LLVM began as project to replace this part of GCC's work because it was too difficult for programmers to work with GCC to get this kind of information.

Name: Anonymous 2015-07-31 19:02

language that's mature enough to have optimizing compilers
Like Haskell?

Name: Anonymous 2015-07-31 19:06

>>8
``PURELY FUNCTIONAL PROGRAMMING LANGUAGE''

Name: Anonymous 2015-08-01 0:53

>>5
Both GCC and LLVM are torture to retarget.

Name: Anonymous 2015-08-01 3:29

>>11
dubs

Name: Cudder !cXCudderUE 2015-08-01 5:38

>>7
It's mainly because of RMS' petty fighting with and paranoia against proprietary software, and the fact that most of the GNUtards just aren't that great at programming (but they are great at arguing about license minutiae and political drama.) Look at things like coreutils for example. His goal was to make GCC difficult for others to improve with proprietary extensions, and it partially succeeded because it made GCC difficult for anyone to improve.

Name: Anonymous 2015-08-01 10:58

C, LLVM, JVM.

One of these is not like the other.

Fuck C. It's a piece of shit, old-ass, broken patched over language for cunts.

Name: Anonymous 2015-08-01 11:04

>>13
Idk man, I have to say this, all languages are fun to me. PHP, perl, C, C++, lisp, factor, haskell.

Name: Anonymous 2015-08-02 4:57

>>12
Hmm, if only someone wrote a superior version of coreutils without all the GNU bloat. Maybe we could call it "anoncoreutils".

Name: Anonymous 2015-08-02 11:28

>>13
I second that.

Name: Anonymous 2015-08-02 15:05

>>13
You could just stop trying to write C like it was Java.

Name: Anonymous 2015-08-02 17:09

I am implementing the coreutils in Golang. This serves 2 purposes:
1. ease of maintenance and adding new features
2. avoid the unsafe C language.

Example cat is below. It is almost POSIX compliant, however -u flag is not implemented.

package main
import (
"errors"
"flag"
"io"
"os"
)
func check(err error) {
if err != nil {
panic(err)
}
}
func main() {
var uFlag *bool = flag.Bool("u", false, "Write bytes from the input file to the standard output without delay as each is read.")
flag.Parse()
if *uFlag {
panic(errors.New("Not implemented"))
}
files := flag.Args()
if len(files) == 0 || files[0] == "-" {
// stdin -> stdout mode
io.Copy(os.Stdout, os.Stdin)
} else {
// file mode
for _, file := range files {
f, err := os.Open(file);
check(err)
defer f.Close()
io.Copy(os.Stdout, f)
}
}
}


Only problem is the binaries are rather large )

Directory of C:\Gocode\bin

2015-08-02 10:41 AM <DIR> .
2015-08-02 10:41 AM <DIR> ..
2015-08-02 10:39 AM 2,194,944 cat.exe
2015-07-28 10:08 PM 2,650,624 env.exe
2015-07-27 09:42 PM 2,249,728 pwd.exe
2015-07-25 09:41 PM 2,205,184 touch.exe
2015-07-27 12:07 AM 1,191,936 true.exe
5 File(s) 10,492,416 bytes
2 Dir(s) 89,684,774,912 bytes free

C:\Gocode\bin>


So the next task is to combine into 1 executable, similar idea to busybox except with better (not GPL) license.

Name: Anonymous 2015-08-02 17:27

>>18
I see no flag being implemented, not just -u. Also, will you include translations to various languages? (AFAIK Golang works with chinese n shit, right?)

Name: Anonymous 2015-08-02 17:43

>>18
Also, regarding the file size, I find this:
https://golang.org/doc/faq#Why_is_my_trivial_program_such_a_large_binary
So I guess the busybox approach is good.

Name: Anonymous 2015-08-02 20:11

>>13
But is c is fast.

Name: Anonymous 2015-08-02 20:40

this dubs are miiine

Name: Anonymous 2015-08-03 0:19

Go is a trojan horse made by Google Jews to fuck over its competitors.

Meanwhile they still write all their projects in C++ and Java with not a single shipped product in le Go.

Name: Anonymous 2015-08-03 1:02

>>18
Terrible!

Name: Anonymous 2015-08-03 2:32

>>23
From what I understand, it gets used at Google for various internal services and glue. Most web "products" are a mix of components written in several different languages anyway, so faulting Go for not powering an entire product seems silly.

Name: Anonymous 2015-08-03 13:15

>>25
very lame shilling

go is shit

Name: Anonymous 2015-08-03 13:21

>>23
What is the purpose of rewriting stable and mature software that does its job properly? Google's existing systems are much older than Go. Writing things in a new language only makes sense for brand new projects or projects that truly need a rewrite.

Name: Anonymous 2015-08-03 15:06

>>23
Programmers ``giterdone'' in Java, C, C++, or a dynamically typed language.
Go and Rust are for trolling the competitors. Haskell is an epic troll on a whole other scale.

Name: Anonymous 2015-08-03 17:53

>>26
epic shill meme /b/ro lmaoooo

Don't change these.
Name: Email:
Entire Thread Thread List