« first day (427 days earlier)      last day (61 days later) » 

8:29 AM
0
Q: Are there actual languages using fat pointers to store types?

user23013In the normal implementations of C++, while not guaranteed by the standard, there is a vtable pointer as the header of every inherited class that needs a vtable pointer. There will be multiple vtable pointers for multiple inheritance that all have virtual functions. In Java and C#, there is one s...

 
4 hours later…
12:59 PM
Thoughts on this?
1:10 PM
show me a game written in SQL
actually no don't do that, I'm sure one exists
@mousetail that language is called... SQL
Well I know PL/SQL exists but is shit. What if we did it good?
we are definitely in need of a new db language, i can agree. same as shaders
im already working on the shader one
I want more general purpose language with a built in query language, as one thing. Capable of more high level stuff than just queries
@mousetail C# with LINQ?
1:15 PM
LINQ is just iterators though right?
also literally every DBO library out there
yeah but it has a query syntax, from Foo where <condition> select Bar
 
3 hours later…
4:45 PM
@mousetail there was a good quote about compilers vs databases, but i don't remember it
@mousetail linq is just not iterators. if the goal was only to have python list comprehension, they would have use list comprehension syntax.
linq's syntax looks a lot like sql and includes things like group by, order by... but the interesting point is that you can access and transform the linq expression into whatever you want... e.g. into sql
when it came out, there was hype about linq2sql and linq2xml (to query xml documents)... but if you ask me, the best part is that it also does list comprehensions :-)
 
2 hours later…
6:39 PM
That is not an uncommon perspective and there are quite a few “language with a database in it” attempts in one way or another
There was also Have you tried rubbing a database on it?, an online conference all about putting databases into things a couple of years ago that still has some interesting links
Something like Subtext is arguably a kind of database too
And all the “spreadsheet but X” systems
 
1 hour later…
7:48 PM
on the topic of LINQ, i think it is really unnecesary
your traditional map, filter, etc works just as well
esp if youve got syntax like kotlin: c.map { it + 1 }
8:25 PM
Yes, classic map functions work well for simple cases, especially compared to linq's heavyweight sql-inspired syntax.
But complex linq queries are not so easily translated into functions form. They wouldn't look as good
Consider:
from x in employees
let tax = x.ComputeTax()
orderby tax descending
select x.LastName + ": " + tax
You'd have to do something like:
employees
.Select(x => new { x, tax = x.ComputeTax() })
.OrderByDescending(z => z.tax)
.Select(z => z.x.LastName + ": " + z.tax)
Having to introduce tuple/records like that is a tax on readability that linq doesn't have to pay. Imagine with multiple let
8:42 PM
Alternatively, LINQ is just your traditional map, filter, and most especially bind, and the query syntax is just do notation to handle scoping

« first day (427 days earlier)      last day (61 days later) »