Demo: Bounds check, here strings, overloading.

Demo: Bounds check, here strings, overloading.

Jonathan Blow

9 лет назад

19,086 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@DjChronokun
@DjChronokun - 05.08.2015 09:11

you might want to use mg (MicroGnuEmacs) if that works on windows? I don't know, maybe.

Ответить
@Plasticcaz
@Plasticcaz - 05.08.2015 09:55

I'd like to know if function overloading works with named parameters, and default arguments.

 ie:

baz :: (a: u16 = 4, b: u64) {}

baz:: (a: string = "hey", b: u64 {}

Where you could call:
baz( b: 54)

One could argue, that this is the programmer being an idiot, but does the compiler detect that and call the programmer out on it?

Ответить
@mdtys
@mdtys - 05.08.2015 13:08

hopefully these'll be more frequent once the witness is out.

Ответить
@GingerGames
@GingerGames - 05.08.2015 19:40

I've got a couple of questions if that's okay:

When does a `defer`ed statement get called? End of scope (i.e. D) or end of function (i.e. Go)?

As there is function overloading, will there be operator overloading or is not needed?

Can you convert strings to codepoint arrays and vice versa?

What # declarations are there so far? Will you be able to add your own or is it even needed?

How is the galaga game? Is there a bonus level?

Ответить
@LauMaackKrommes
@LauMaackKrommes - 05.08.2015 21:41

I am very much looking forward to actually trying the language :) goodbye c++

Ответить
@StarkTrist
@StarkTrist - 05.08.2015 22:53

Hello Jonathan,

I was wondering if you had given any though to push/pass semantic on function calls. I sent an email a while back and was interested if you thought the functionality was worthwhile to implement/experiment on.

Ответить
@deadalnix
@deadalnix - 06.08.2015 02:14

Are you still compiling to C ?

Ответить
@antoniole01
@antoniole01 - 06.08.2015 10:32

i wonder if your ever in contact, with other great programmers like carmac, gabe, sid myers, you know game programmers, or even linus, people who would start using your programming language? Or give you any ideas or advice, on what a programming language is missing?

Ответить
@charlymourglia6969
@charlymourglia6969 - 07.08.2015 17:40

Jonathan Blow I must have missed something, but I do not get why the .. operator includes the last element ? I feel like it is a bit error prone, and a bit more verbose (since you might have to call for 0..N-1 everytime)
Thanks !

Ответить
@UGPepe
@UGPepe - 08.08.2015 00:47

wohoo, I've been waiting for 2 months!

Ответить
@UGPepe
@UGPepe - 11.08.2015 02:35

closures not important? :( I was hoping we would get rid of that dreaded "data" arg on all callbacks.

Ответить
@soulstudiosmusic
@soulstudiosmusic - 14.08.2015 08:52

What are some of the scenarios where you would not want bounds-checking in a debug build?

Ответить
@intrepidis1
@intrepidis1 - 15.08.2015 22:03

Just wondering, eventually will it be possible to convert C++ code into JAI?

Ответить
@InstantKafkaProjSprk
@InstantKafkaProjSprk - 31.08.2015 20:11

I'm very excited about this project. Can't wait to try it.

I'm an experienced, albeit self-taught C# developer and I've always wanted to use a language that's "closer to the metal", but I really dislike C/C++. A lot of the things you've implemented in the language are similar to what's already in C#, so I find it very easy to follow what you're trying to accomplish. A few questions:

1) I don't recall you mentioning the name of this language in the videos, so forgive me if this was already answered. Is it going to be called "Jai"? If so, how did you come up with that name?

2) Do you feel that this language would be good as a starter language to learn for new programmers?

3) I discovered these videos after I started watching the HandMade Hero videos and reading about the Handmade movement. Have you thought about porting Handmade Hero to this language? I think it would be an interesting project to test the language.

Ответить
@dietermuller4345
@dietermuller4345 - 06.09.2015 12:34

Does anyone know which font he's using? I mean the font in emacs!

Ответить
@juanguitar1689
@juanguitar1689 - 10.09.2015 16:53

Okay, so I have ZERO experience with this kind of stuff, so, to me, you're talking alien language in these videos... but that doesn't mean I don't appreciate what you're doing here. I mean, one of the most incredible game developers out there donating so much of his time to teach people? That's SO awesome! I admire you quite a lot, sir. Can't wait for The Witness and greetings from Brazil :)

Ответить
@nightbasilisk
@nightbasilisk - 02.10.2015 23:53

What happens if you have a struct that has two using statements both referring to the same struct. So as an example you have some struct Point then you have another struct that is "using" two times Point for "start" and "end", lets call this struct Direction. What happens when you pass Direction to a function that has overload for Point. Similarly what happens if you have a struct A that is using Point "x" and a struct B that's also using Point as "y" but also using A as substruct. Does passing B to a function that has a overload for point, does it error out or try to use Point y from B and ignores A has a point.

Ответить
@АндрейБеньковский-ш5к
@АндрейБеньковский-ш5к - 29.03.2016 09:57

Wow! Your work-in-progress compiler uses custom error messages for some features that are not implemented yet (eg math in compile-time constant declarations)? If everyone cared that much about maximizing the helpfulness of error messages, the world would probably be a happier place. Keep up great work!

Ответить
@Kavukamari
@Kavukamari - 02.08.2017 17:31

loving those here strings

Ответить
@shavais33
@shavais33 - 11.02.2020 09:50

Do other languages support function overloading across scope boundaries? I didn't even know that was a thing. I suppose if you have functions that aren't a method of a class, and you have nested scopes in which they can reside, then obviously the possibility exists, I guess. It definitely seems like choosing the most local overload that fits is by far the most obvious and intuitive way to handle it. Defining function overloads across module boundaries!? Which may be loaded at run time!? Lol, jeepers. Hmm. Can you just bind to whatever makes the most sense at the time? And then let the programmer sort it out, lol. Just give them enough information to be able to tell what happened, which it seems like you already do. I guess that would leave things in kind of an unpredictable spot, though. Well, I guess by now, this has long since been dealt with. I'll be curious to find out how..

Ответить
@sollybrown8217
@sollybrown8217 - 05.10.2023 03:54

How is there literally nothing usable in C++!

Ответить