representation Questions

5

All Lisp developers seem to know what an S-Expression is. But can anybody explain this for non Lisp developers? There is already a Wikipedia entry (https://en.wikipedia.org/wiki/S-expression). But ...
Glori asked 23/10, 2022 at 14:59

16

Solved

Just asked by my 5 year old kid: what is the biggest number in the computer? We are not talking about max number for a specific data types, but the biggest number that a computer can represent. I...
Falbala asked 14/9, 2010 at 11:37

13

Solved

I'm following a college course about operating systems and we're learning how to convert from binary to hexadecimal, decimal to hexadecimal, etc. and today we just learned how signed/unsigned numbe...
Nomenclature asked 8/9, 2011 at 14:30

7

I just can't understand fixed point and floating point numbers due to hard to read definitions about them all over Google. But none that I have read provide a simple enough explanation of what they...
Eyeshade asked 23/9, 2011 at 5:53

5

I'm trying to read in a string representation of a Tuple from a file, and add the tuple to a list. Here's the relevant code. raw_data = userfile.read().split('\n') for a in raw_data : print a b...

3

Solved

If the representation of a long int and a int are the same on a platform, are they strictly the same? Do the types behave any differently on the platform in any way according to the C standard? Eg....
Bunch asked 29/3, 2021 at 7:45

5

Solved

There are a bunch of both human- and machine-readable textual representations for a tree -- e.g. a nested list (in various representations -- e.g. JSON and YAML) and XML. Combined with indentation,...
Energetics asked 13/9, 2019 at 15:49

2

Solved

How does a .NET decimal type get represented in binary in memory? We all know how floating-point numbers are stored and the thusly the reasons for the inaccuracy thereof, but I can't find any inf...
Betty asked 27/9, 2010 at 6:4

5

This is probably a stupid idea, but I would like to know why. I'm reading about REST API's, and principles such as HATEOAS. All the time, I'm wondering why people don't just use HTML for the repre...
Nigritude asked 12/2, 2015 at 15:1

2

Solved

I'm having trouble understanding how values of boxed traits come into existence. Consider the following code: trait Fooer { fn foo(&self); } impl Fooer for i32 { fn foo(&self) { println!...
Pecker asked 12/9, 2018 at 6:45

1

Solved

I just got finished reading the paper Levity Polymorphism. I had a question about why undefined can be levity-polymorphic when used as an unboxed type. First, let's start with some definitions of...
Redmond asked 23/4, 2018 at 17:1

1

Solved

I've got some bytes in a blob, an immutable buffer for binary data and I am looking for a way to convert what it holds into a floating point data structure, Num, since it is the class that fits all...
Tonguetied asked 29/4, 2018 at 11:24

3

Solved

If someone writes a class in python, and fails to specify their own __repr__() method, then a default one is provided for them. However, suppose we want to write a function which has the same, or s...
Argive asked 13/2, 2018 at 22:52

2

Solved

We all know about the Android Activity's life cycle and Fragment's life cycles. But is there anything equivalent for views ? This could help, for instance, building custom views or give an i...
Semifluid asked 30/10, 2012 at 20:3

4

Solved

I am really stumped on this one. In C# there is a hexadecimal constants representation format as below : int a = 0xAF2323F5; is there a binary constants representation format?
Rattat asked 7/8, 2009 at 20:25

1

This is a Common Lisp data representation question. What is a good way to represent grammars? By "good" I mean a representation that is simple, easy to understand, and I can operate on the represe...
Putrescine asked 23/3, 2016 at 22:1

0

I'd like to use the unification-fd package to implement a simple typechecker for a Hindley-Milner type system. This requires the representation of polymorphic ("forall") types. What's the best way...
Lochner asked 30/4, 2016 at 5:1

3

Solved

Recently I was confused by this question. Maybe because I didn't read language specifications (it's my fault, I know). C99 standard doesn't say which negative numbers representation should be used...

1

I'm designing a REST API and despite trawling a number of best practice guides I can't find much relating to the best practice of handling the disparity between representation structure needed for ...
Hat asked 8/4, 2015 at 14:7

4

Solved

I occasionally find that it would be useful to get the printed representation of an R object as a character string, like Python's repr function or Lisp's prin1-to-string. Does such a function exist...
Moonshiner asked 2/4, 2012 at 19:53

3

Solved

Suppose you have a nice inductive definition and you want to define it as a data type in Haskell. However, your inductive definition is (as many inductive definitions are) of such a form that the g...
Ogden asked 20/10, 2014 at 13:50

4

Solved

I searched on google for a meaning of canonical representation and turned up documents that are entirely too cryptic. Can anyone provide a quick explanation of canonical representation and also wha...
Clydesdale asked 22/7, 2009 at 18:49

1

Solved

How can I determine if a Haskell type has an equivalent Coercible instance on a given platform? I've just been told about Coercible in GHC 7.8, which seems great. In that context, I guess an equal...
Taliataliaferro asked 17/3, 2014 at 16:3

2

Solved

I was recently in a job interview for a position as Java Developer. I was given a task: To think about a good way to represent an electric circuit (such as the one in the figure below) in Java. A...
Erective asked 19/12, 2013 at 16:33

2

Solved

What is a good way to represent finite automaton in Haskell? How would the data type of it look like? In our college, automata were defined as a 5-tuple (Q, X, delta, q_0, F) where Q is the se...
Robbirobbia asked 16/6, 2012 at 13:47

© 2022 - 2024 — McMap. All rights reserved.