« first day (3345 days earlier)      last day (1586 days later) » 

8:00 PM
Nice
 
@Wietbot evalsql insert into jona values
('Jonathon Chase'),
('Wietlol')
 
me.wietlol.aws.lambda.LambdaException(org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "INSERT INTO JONA VALUES
('Jonathon Chase'),
('Wietlol'),[*]"; expected "ROW, (, DEFAULT, NOT, EXISTS, INTERSECTS, UNIQUE"; SQL statement:
insert into jona values
('Jonathon Chase'),
('Wietlol'), [42001-200][
at org.h2.message.DbException.getJdbcSQLException(DbException.java:453),
at org.h2.message.DbException.getJdbcSQLException(DbException.java:429),
at org.h2.message.DbException.getSyntaxError(DbException.java:243),
 
did I... mess something up ?
oh
 
Success, 2 records affected.
 
@Wietbot select * from jona
 
8:01 PM
I have no clue what you meant right there.
 
-_-
@Wietbot evalsql select * from jona
 
@Wietbot evalsql ;with f(l) as (select 'a' union all select * from f) select l from f option (Maxrecursion 5)
 
NAME

Jonathon Chase
Wietlol
org.h2.jdbc.JdbcSQLSyntaxErrorException(Syntax error in SQL statement "WITH F(L) AS (SELECT 'a' UNION ALL SELECT * FROM F) SELECT L FROM F OPTION (MAXRECURSION 5[*])"; expected ",, )"; SQL statement:
with f(l) as (select 'a' union all select * from f) select l from f option (Maxrecursion 5) [42001-200])
 
not sure where your null came from... but you should try to feed it normal queries
also...
@Wietbot leave 7
to the sandbox!
 
Yeah, I think I'm having issues trying to get it to eval a recursive CTE in one line
 
8:03 PM
then dont use one line
my commands werent single lines either
 
What, and write my code in two lines? Like a monster?
 
3 mins ago, by Wietlol
@Wietbot evalsql create table jona (
    name nvarchar(1024) not null
)
anyway, would an eval ruby or eval python be interesting?
I have support for their runtimes, but I dont know those languages well enough to write an eval feature in it
 
Me niether.
What's wrong with the CSharp eval?
 
imports fail
current setup doesnt have imports
ill show you in the sandbox
 
I want to see what happens when I try to compile class X<A,B,C,D,E>{class Y:X<Y,Y,Y,Y,Y>{Y.Y.Y.Y.Y.Y.Y.Y.Y y;}}
 
8:08 PM
other than that it is insane, it would compile
 
It might not
Depending on timeout
It takes about a minute to compile that on my machine.
 
I dont understand what it is tho
Rider also doesnt approve of your hell
 
8:25 PM
It's just a combinatorial explosion of generic abuse
 
but what does the Y.Y.Y.Y.Y.Y.Y.Y.Y mean?
 
Since the nested class Y inherits from X each Y has a Y (from the X), so it's forcing the compiler to suss out the definition for each nesting. More Y's = more compiler effort
so it's a recursive generic meant to bomb the compiler.
 
oh, I see
Java also has a nice compiler bomb
when you declare anonymous classes... inside anonymous classes
the compiler effort doubles
so... if you have 5 nested anonymous classes, you have 2^5 compiler effort
and that effort basically starts with... lets say 100ms
 
:o one of my old compiler abuses seems to be fixed in core
    class Program
    {
        static void Main()
        {
            bool result = GetValue();
            bool val;
            switch(result)
            {
                case true:
                case false:
                    val = false;
                    break;
                default:
                    val = true;
                    break;
            }

            Debug.Assert(result);
            Debug.Assert(val);
        }

        static unsafe bool GetValue() {
            int x = 42;
Works fine in framework, assert fails in core.
 
8:43 PM
define 'fine'
 
Hits the default branch like a monster.
There must be a compiler optimization taking place in core for boolean switches.
 
> await using TextWriter writer = new StringWriter();
what the actual force is this?
 
using statement
 
AWAIT
 
IAsyncDisposable?
 
8:46 PM
iDunno
 
altho
 
Anyone know how to resolve binding in code to get the BindingContext (it's relative binding)
 
i don't see how a constructor could be marked async
that doesn't look valid
but it is.
what the
I guess it must be valid for an IAsyncDisposable. It still weirds me out.
 
I think the dispose is async
well... I think I fixed csharp eval
what usings should I add by default?
> "System",
"System.Collections.Generic",
"System.Text",
"System.Linq",
"System.Threading.Tasks",
"System.Threading")
 
9:06 PM
Are you talking about Wietbot?
 
ye
 
9:28 PM
I'm curious how threading would work in that case
 
Mmmm recursive threading snippets
 
for(;;) System.Diagnostic.Debug.WriteLine("wietLOL");
 
ye...
 
@Wietlol actually System.Diagnostics wouldn't be a bad one, for benchmarking
 
"System",
"System.Collections.Concurrent",
"System.Collections.Generic",
"System.Collections.Immutable",
"System.Collections.Specialized",
"System.Dynamic",
"System.Globalization",
"System.Linq",
"System.Text",
"System.Text.RegularExpressions",
"System.Threading",
"System.Threading.Tasks",
"System.Xml",
"System.Xml.Linq",
"System.Xml.Serialization",
"System.Xml.XPath",
"Newtonsoft.Json")
that is the current list
 
9:32 PM
This is probably too dangerous but what about adding a command to add to the usings?
 
any of the sub namespaces?
 
I think stopwatch is just in System.Diagnostics
Oh, System.Reflection would also be good
 
any other non-system namespaces?
I have Newtonsoft.Json for JsonConvert
also, it runs on core 2.1
so no new stuff yet
 
I'll let you know if I think of anything
 
it is working now with imports
@Wietbot evalcsharp public class Test {
    public String Foo => "Hello, World!";
}
new Test().Foo
 
9:40 PM
Hello, World!
 
feel free to break it in the sandbox
 
 
1 hour later…
10:45 PM
 
@Feeds Shut It!
 

« first day (3345 days earlier)      last day (1586 days later) »