5
votes
2answers
283 views

Writing a Memory Manager in a managed language?

The Jikes RVM, a metacircular java runtime, seems to have its Allocator/Collector written in Java (MMTK). How does it work, then, when your garbage collector requires a garbage collector to run? From ...
1
vote
2answers
59 views

Resolving the types of functions in external modules

Suppose we have an imaginary statically typed programming language - let's call it SL. Each SL file corresponds to a module - SL's logical grouping of related functions into namespaces. Calls to ...
1
vote
1answer
80 views

compiler design and eliminating left recursion

For example E -> E+T | T would be E -> T E' E' -> +T E' | null If I have the production B -> B == C | C would these be the correct productions? B -> C B' B' -> ==C B' | ...
1
vote
2answers
93 views

The programming language interactions with operating systems

This is a Computer Science question about programming languages and operating systems. My question is, what are the basic interactions between a programming language and operating systems? I do have ...
1
vote
2answers
60 views

Hypothetical - Support for Non-ASCII characters in non-string text

Say, for example, that in Java version 9, someone wanted to add support for the ≤ and ≥ characters as operands, which would work exactly like the <= and >= operands, respectively. Would this be ...
0
votes
1answer
52 views

TypeScript Implementation Language

I have been poking around at the TypeScript compiler and found this curious statement in the language spec: TypeScript compiler is implemented in TypeScript Is this even possible? I must believe ...
0
votes
1answer
54 views

Getting started with Program Analysis [closed]

I'm looking for resources on getting started with program analysis. The only book I've found on the topic is the Nielson & Nielson book. Other than that, it seems like there's only "compiler" ...
3
votes
3answers
113 views

Creating a Programming Language

I was wondering how professional programmers create their own programming languages. Do they only create a compiler which reads a text file and makes an executable out of it (considering there are no ...
2
votes
1answer
73 views

Pure name equivalence in type checking

I am reading Ravi Sethi's book about the programming language concepts, and there it says int *i1; int *i2; After these declarations, the types of i1 and i2 are not name type compatible. In ...
2
votes
3answers
89 views

Is there any way to create a high level language interpreter implmented in hardware?

Some random thoughts caught me and I just cannot get it out. I am thinking since morden processors are just interpreters for different kinds of assembly languages, is there anyway to create some ...
1
vote
1answer
86 views

Is there a programming language that is designed for compiling into (large) neural networks?

I thought about this a while ago, that maybe there should be (or is already) a programming language that actually compiles into a big neural network, that ideally, would scale very well for parallel ...
1
vote
1answer
33 views

Optimization with and without exceptions after compilation - would the results be the same?

Given a program , that uses exceptions for its functionality : if we'd run the program with optimization at one time , and after that we'd run it without optimization - would the outputs of the both ...
0
votes
0answers
34 views

LL1 grammar in compiling

I have a question about LL1 grammar. If we have grammar like this: <S>::=<A> <A>::=<A> car cat | epsilon What is the First <A> can be? Is it just epsilon? And if its ...
4
votes
3answers
107 views

Parsing a C family language out of order

C is parsed strictly in order, i.e. everything has to be declared before it is used; in particular, types must be declared before variables of those types. This makes sense because the grammar would ...
0
votes
1answer
46 views

Javascript library to parse other languages [closed]

Does anyone know where I can find a javascript library which could parse the syntax of other programming languages like php, c# e.t.c. What I'm looking or in detail is some sort of browser text ...

1 2 3 4 5 11
15 30 50 per page