These are chat archives for arenanet/api-cdi

28th
Jul 2017
Archomeda
@Archomeda
Jul 28 2017 00:00
it is fun to write analyzers and codefixers though :P
at least to support my code
you should just stop using features and start using c99
c99 is literally the pinnacle of computational language
I guess "imperative computational language"
Archomeda
@Archomeda
Jul 28 2017 00:03
heh :P
ptolstoi
@ptolstoi
Jul 28 2017 00:19
@lye shouldn't (new Date(Date.UTC(2017, 08, 01, 16)) - new Date()).convertToDaysHoursMinutesSeconds().RenderBeautifully() be enough timezone mambo jambo?
I hate dealing with time/date stuff... event with moment.js and kinds
ptolstoi
@ptolstoi
Jul 28 2017 00:27
oh it must be Date.UTC(2017, 07, 01, 16) since JS counts the months from 0-11 (but days from 1-31, for reasons)
reasons
I dunno, we don't design the sites; the marketing team just gives us PSDs and we implement them
their design didn't have a countdown clock, so yeah.
ptolstoi
@ptolstoi
Jul 28 2017 00:27
:'(
next time? :D
maybe! I'll see if I can remember to bring it up
ptolstoi
@ptolstoi
Jul 28 2017 00:28
coool :D
Archomeda
@Archomeda
Jul 28 2017 00:28
it will never have a countdown clock...
psd files are kind of... well... static
:)
hey man the competitive site had a video banner
Archomeda
@Archomeda
Jul 28 2017 00:29
really?
yep
Archomeda
@Archomeda
Jul 28 2017 00:29
i must have missed that, or i must have forgotten :(
it was a while back
ptolstoi
@ptolstoi
Jul 28 2017 00:30
It was the first page you did with mithril iirc?
at least something was special about it
pat posted something about it?
i thought the account site was the first mithril app we shipped
i honestly don't remember
Archomeda
@Archomeda
Jul 28 2017 01:08
https://wiki.guildwars2.com/wiki/Xunlai_Electrum_Ingot huh.... apparently that's in the game now
as in, actually obtainable after 4 years
Darqam
@Darqam
Jul 28 2017 01:14
yup, for legendary trinket
Archomeda
@Archomeda
Jul 28 2017 01:15
oh
well, i suppose i don't want it then :P
Eearslya Sleiarion
@Eearslya
Jul 28 2017 01:38
@lye and how many times have those PSDs been reasonably convertable to sane CSS?
windwarrior
@windwarrior
Jul 28 2017 08:07
background-image('https://staticwars.com/render-of-psd.png')
one of my pet peeves: websites that have a non-sensible url scheme
windwarrior
@windwarrior
Jul 28 2017 08:12
like marketing deciding that some random news article that is on /news/2395/random-news-article should suddenly also be accessible on /random-news-article because of posters
@Eearslya that's the web team's job, so every time? :<
Eearslya Sleiarion
@Eearslya
Jul 28 2017 16:56
I mean, I'm just imagining what designers could dream up that would be a nightmare to actually implement
subtle animations and interactions
Eearslya Sleiarion
@Eearslya
Jul 28 2017 16:56
without a ton of explicit pixel measurements
I mean there's that too, but it's just legwork
the trading post order form is a good example
it's got a lot of interconnected subtle interactions
those are super hard to express in pictures, but we basically got a pile of pictures
Eearslya Sleiarion
@Eearslya
Jul 28 2017 16:57
I would actually imagine the TP is a little easier, 'cause you've sort of got a static browser that's the same for everyone
oh, sure.
Eearslya Sleiarion
@Eearslya
Jul 28 2017 16:57
rather than normal sites on mobile and desktop and tablet and fridge
I haven't done much work on the non-in-game stuff
I did the applications page on the account site, but that's about it
Eearslya Sleiarion
@Eearslya
Jul 28 2017 16:59
You can always tell by looking at my stuff that it was designed by a programmer
design is hard
I like MDL in that respect, cause it's kind of meant to look simple and clean and functional
windwarrior
@windwarrior
Jul 28 2017 17:15
Design is also kinda personal. I probably have a very different taste in interfaces than you
Once
Again a problem without a silver bullet
Darqam
@Darqam
Jul 28 2017 17:20
There's no other way to determine which match a world is in other than checking https://api.guildwars2.com/v2/wvw/matches?ids=all, is there?
Darqam
@Darqam
Jul 28 2017 17:21
lol, of course that's a thing
thanks
darthmaim
@darthmaim
Jul 28 2017 17:21
:P
thats what I'm here for
Darqam
@Darqam
Jul 28 2017 17:22
hum, I should really start storing which world the users are in to avoid doing 2 queries instead of 1
Archomeda
@Archomeda
Jul 28 2017 20:18
@BoyC do you have guild bounty routes on taco? :D
BoyC
@BoyC
Jul 28 2017 20:20
yeah had them for a year or so now
just follow the sheriff's stars, they go the other way the bounty runs so should get you to it quickly
Archomeda
@Archomeda
Jul 28 2017 20:25
alright
i really have to download taco at some point
BoyC
@BoyC
Jul 28 2017 20:26
:)
Archomeda
@Archomeda
Jul 28 2017 20:36

Forum Slowness - 27 July 2017
You may have noticed that the official forums are loading more slowly than normal. Technical team members have been informed, and they currently are investigating the cause of the problem with an eye to correcting it as soon as possible.

lol... you have a technical team for the forums? :D

Eearslya Sleiarion
@Eearslya
Jul 28 2017 20:37
I'm guessing they mean the sysadmins
Archomeda
@Archomeda
Jul 28 2017 20:38
well... i thought the forums were abandoned by everyone :P
Darqam
@Darqam
Jul 28 2017 20:45
Any way to query v2/guilds for more than one guild? Tried ?ids= but didn't seem to like that input :/
Archomeda
@Archomeda
Jul 28 2017 20:45
nop
darthmaim
@darthmaim
Jul 28 2017 20:45
nope
Darqam
@Darqam
Jul 28 2017 20:45
rip
so basically finding which guild claimed what on command is not going to happen in a realistic timeframe
(for an entire map at once)
Archomeda
@Archomeda
Jul 28 2017 20:50
wow, new build on a friday?
even if it's a bugfix

You can move the different TacO windows around by clicking the TacO menu and selecting "Window edit mode". Resizing and moving the windows will be possible that way.

keeps looking

after a minute or 2 i found out it's actually a button next to the gw2 buttons...

i'm bad
BoyC
@BoyC
Jul 28 2017 20:51
:D
Archomeda
@Archomeda
Jul 28 2017 20:52
oh, i got a suggestion for your menu
BoyC
@BoyC
Jul 28 2017 20:52
seems like the new interface integration went too well
yeah keep it open
i know
Archomeda
@Archomeda
Jul 28 2017 20:52
nvm then :P
BoyC
@BoyC
Jul 28 2017 20:52
:D
Archomeda
@Archomeda
Jul 28 2017 20:52
just for the checkboxes
BoyC
@BoyC
Jul 28 2017 20:52
yeah i know
my ui engine doesn't support that atm
Archomeda
@Archomeda
Jul 28 2017 20:52
:(
but wow, that font looks really good
what permissions does taco actually want for the api key?
BoyC
@BoyC
Jul 28 2017 20:54
depends on what you need, but progression and commerce are used only atm
Archomeda
@Archomeda
Jul 28 2017 20:57
cool
BoyC
@BoyC
Jul 28 2017 20:57
there's a guy who's doing a pretty awesome job at making marker packs for world completion
he asked for a couple features to make his job easier
but instead of doing those i'll probably work on angelscript integration this weekend so he can write stuff for himself as needed :D
darthmaim
@darthmaim
Jul 28 2017 21:04
@Darqam loading all guilds in a match just takes 1.1458s for me
start = performance.now();
Promise.all(
  Array.from(match.maps.reduce(
    (guilds, map) => (map.objectives.map(obj => obj.claimed_by).filter(Boolean).forEach(guild => guilds.add(guild)), guilds)
    , new Set()
  )).map(guild => fetch('https://api.guildwars2.com/v2/guild/' + guild))
).then(responses => Promise.all(responses.map(response => response.json())))
.then(guilds => console.log(guilds.map(guild => guild.name)))
.then(() => end = performance.now())
.then(() => console.log(((end - start) / 1000).toFixed(4) + 's'))
Darqam
@Darqam
Jul 28 2017 21:05
huh, I would have expected that to take much longer
I might still use that then, thanks for looking into it.
darthmaim
@darthmaim
Jul 28 2017 21:07
Just ran that script a few times now, most of the time its just above 1s, one time it was 6.8s though
Eearslya Sleiarion
@Eearslya
Jul 28 2017 21:07
Plus, I don't think guild can change name without admin intervention, so you can always cache it
darthmaim
@darthmaim
Jul 28 2017 21:07
but I guess that could happen with a single request too
Eearslya Sleiarion
@Eearslya
Jul 28 2017 21:07
cache it for like, a week
Darqam
@Darqam
Jul 28 2017 21:07
yeah, well I might just have it output a first version while guild query is running and then just edit in the guilds
Eearslya Sleiarion
@Eearslya
Jul 28 2017 21:08
wtb /v2/guilds just fetch every guild ever
save them all
K900
@K900
Jul 28 2017 21:13
@BoyC I cleaned up my data a bit, will probably put it up somewhere once I figure out how to handle chat links in JS
BoyC
@BoyC
Jul 28 2017 21:13
cool
K900
@K900
Jul 28 2017 21:14
Turns out converting a number to little endian base64 in JS
BoyC
@BoyC
Jul 28 2017 21:14
will see if i have time/energy over the weekend to have a look
K900
@K900
Jul 28 2017 21:14
Is exactly as painful as you expect it to be
@darthmaim yeah, I've been trying to avoid a third party base64 library
Maybe I'm just doing JS wrong
And you're supposed to just import shit from NPM and pray it gets optimized away
Darqam
@Darqam
Jul 28 2017 21:25
@lye any chance the (WvW) matches endpoint could explicitly show the current tier the objective is at? At the moment I think you have to just math it out with yaks_delivered.
Eh, although I guess they all require the same amount of yaks, so it's not the end of the world. For some reason thought keeps and towers needed different amounts
Probably won't have time to get around to it, so just use yaks_delivered :<
Archomeda
@Archomeda
Jul 28 2017 22:31
hmm... is the information in the new ls3 teleport tome where you can store the scrolls in, item bound? or is that information stored in the account?
i'm wondering if you get a second tome, it takes the tp scrolls from the other tome or if you have to start from scratch
JC123
@JC123
Jul 28 2017 22:34
looks to be stored in account
no data can be stored in items
there isn't space for it
Archomeda
@Archomeda
Jul 28 2017 22:42
how are stat selections and the usages left counter stored then? :O
oh that's fair
there's a single field for stats selections or usage counters
Archomeda
@Archomeda
Jul 28 2017 22:43
shared?
since you mentioned "or"
but since those types of data are used kind of frequently, i suppose it's easier to afford a field for it
compared to that tome :P
but i guess there's no general purpose field on an item :(
it's a union :>
Archomeda
@Archomeda
Jul 28 2017 22:49
eh... i've had the luxury of not having to use that for a struct just yet... hehe
it's like storing different data in the same position right? although, basically you can only use one type of data at a time
ptolstoi
@ptolstoi
Jul 28 2017 22:53
@lye let me guess the union field is a byte big? thus max usages is 250? :D
nah there's a pile of different structs, one for each item type
the structs are all unioned together to make an "item"
Archomeda
@Archomeda
Jul 28 2017 22:54
oh god
/v1/item_details kind of gives away the spirit of it
Archomeda
@Archomeda
Jul 28 2017 22:54
that's gonna be a hell of a lot of unions
it's a union of 17 structs :)
(one for each item type)
Archomeda
@Archomeda
Jul 28 2017 22:55
rip
actually you know what, I'm looking at the wrong thing
this is for static data
charges are stored elsewhere
ptolstoi
@ptolstoi
Jul 28 2017 22:56
wow... I means it is atleast concise memorywise
the per-slot data is stored as a tagged void* with 26 possible types :>
ptolstoi
@ptolstoi
Jul 28 2017 22:58
<3 void* <3
the binary serialization bits don't support unions afaik
Archomeda
@Archomeda
Jul 28 2017 22:58
TWENTY-SIX? -__-
yeah, one for each item type, then separate ones for combinations of {infusible, dyeable} etc
Archomeda
@Archomeda
Jul 28 2017 23:00
wow
tools and ... gathering tools are the only ones with a uses field
@ptolstoi it is just a single byte though :>
ptolstoi
@ptolstoi
Jul 28 2017 23:00
ha! hire me?
Archomeda
@Archomeda
Jul 28 2017 23:01
really, get rid of that uses field, and make it completely separate items while allowing them to stack at the same time :P
Archomeda
@Archomeda
Jul 28 2017 23:01
or charges field, w/e
ptolstoi
@ptolstoi
Jul 28 2017 23:01
yeah you don't sponser visa... so :'(
rip :(
Archomeda
@Archomeda
Jul 28 2017 23:02
although when i suggested this to linsey for doing this for the black lion salvage kits, she said it was kind of impossible :sob:
it's pretty impossible
it's more feasible to have a mystic forge recipe that takes 'em -- except AFAIK the mystic forge can't check quantities
so it couldn't add up the charges
Archomeda
@Archomeda
Jul 28 2017 23:04
eh, pretty sure there are recipes that take multiple of 1 item slot, like for the mystic salvage kit you need to use 3 mystic stones
or is that not what you meant?
ptolstoi
@ptolstoi
Jul 28 2017 23:04
I think stacks != charges
nah like if you put 3x 1/25 kits in there it wouldn't be able to check for that
stacks != charges
they're both stored as a single byte; though they're in different structs
mutually exclusive structs
Archomeda
@Archomeda
Jul 28 2017 23:05
wait... i thought you could only throw in items that were fully charged
can you? I'm not sure
Archomeda
@Archomeda
Jul 28 2017 23:05
i'm unsure actually, can't say i've actually tested it
ptolstoi
@ptolstoi
Jul 28 2017 23:06
I think you don't see kits, that aren't fully charged
Archomeda
@Archomeda
Jul 28 2017 23:06
maybe a pre-check then
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:06
ptolstoi
@ptolstoi
Jul 28 2017 23:06
replacement for pat, I guess
yup
Archomeda
@Archomeda
Jul 28 2017 23:07
^ i was about to say that
i think lye even mentioned it here before?
or was it pat
i can't remember
I mention it everywhere
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:07
rekt
I paste it in anet guild recruitment messages in WvW
Archomeda
@Archomeda
Jul 28 2017 23:07
lol
@Eearslya if you're actually interested shoot me a resume + portfolio and we might be able to work out an intern position or something
intern positions don't come out of the normal headcount pool so I might be able to convince HR
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:09

portfolio

I have a github full of half-finished C projects and a rails project with a 'coming soon' page XD

Archomeda
@Archomeda
Jul 28 2017 23:09
i have 8+ years programming experience... not professional though :whistle:
I wanna see JS and CSS tho mang
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:09
exactly
darthmaim
@darthmaim
Jul 28 2017 23:10
why are you on the wrong side of the globe :(
Archomeda
@Archomeda
Jul 28 2017 23:10
well, to be expected if it's a job for web programming :P
because blizzard is here
blame blizzard
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:11
one of these days I need to actually start a project that survives the month
I have these bursts of 'ooh that would be cool' and it burns quick
especially when it comes to gw2 ;;
Archomeda
@Archomeda
Jul 28 2017 23:12
yeah..... i kind of have the same issue
darthmaim
@darthmaim
Jul 28 2017 23:12
yup :(
Archomeda
@Archomeda
Jul 28 2017 23:12
apparently i have 32 repos on my github account... urrrgh
darthmaim
@darthmaim
Jul 28 2017 23:12
I actually have a new gw2 project ready, just waiting for the apis to turn on :P
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:12
I only have 18, and I need to clean out a lot of forks..
darthmaim
@darthmaim
Jul 28 2017 23:13
I'm trying to downsize all project ideas I have so I can finish them in one weekend
I'm trying to downsize my projects so I can finish them before I die
darthmaim
@darthmaim
Jul 28 2017 23:14
:P
ptolstoi
@ptolstoi
Jul 28 2017 23:14
just use the scepter of orr
Archomeda
@Archomeda
Jul 28 2017 23:14
my problem is basically: i have an idea, i execute it, host it on github, work on it for a few more days/weeks, and then i'm no longer interested
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:14
there, cleaned out my github forks
9 repos
BoyC
@BoyC
Jul 28 2017 23:14
mmmm https://boards.greenhouse.io/arenanet/jobs/591923 if i only were in the US :)
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:15
1 of them being a fork of api-cdi XD
darthmaim
@darthmaim
Jul 28 2017 23:15
18 public + 9 private repos atm
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:15
and 5 of which haven't been touched in a year
darthmaim
@darthmaim
Jul 28 2017 23:15
(on my account, not counting organizations)
Archomeda
@Archomeda
Jul 28 2017 23:15
https://github.com/Archomeda/ComputerCraftFTPd << i vaguely remember this being a fork previously...
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:16
so 4 active in the past year
OpenComputers 4 lyfe
Archomeda
@Archomeda
Jul 28 2017 23:16

Latest commit cbdfd32 on 23 Feb 2013

hey!

Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:16
those poor repos
my contribution matrix is equally as sporadic
I've just not found something I'm really passionate about making
Archomeda
@Archomeda
Jul 28 2017 23:18
SimpleAuthentication/SimpleAuthentication#132 wtf...
my PR that was 3 years ago, no comment, no merge, no nothing
darthmaim
@darthmaim
Jul 28 2017 23:19
I have some projects I really want to finish, each friday I say myself "this is the weekend", then, suddenly, monday...
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:19
AppliedEnergistics/Applied-Energistics-2!824
..darn I thought ! was pull requests
uh
AppliedEnergistics/Applied-Energistics-2#824
oh there
ooh you've got a commit in AE2? niiiice
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:21
I've got 2 commits in OpenTTD
darthmaim
@darthmaim
Jul 28 2017 23:21
your code runs on my pc :P
Archomeda
@Archomeda
Jul 28 2017 23:21
lol :D
nah, i doubt i will ever clean up my forks that i have contributed in
i did delete 1 though that i never used
Archomeda
@Archomeda
Jul 28 2017 23:23
it's like a nice history of things i've ever committed to
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:23
The course I took on ruby programming was slightly annoying
You had to fork every single lesson
Archomeda
@Archomeda
Jul 28 2017 23:24
urgh
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:24
and you 'submitted' it with a PR
those were annoying to clean up
like, 200 repos
ptolstoi
@ptolstoi
Jul 28 2017 23:24
did you just write a tool that consumes github api? :D
Archomeda
@Archomeda
Jul 28 2017 23:24
oh... i came across a very old project that's still set to private on my account... i had intentions of actually continuing it...
darthmaim
@darthmaim
Jul 28 2017 23:24
github has an api
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:25
unfortunately no >.>
darthmaim
@darthmaim
Jul 28 2017 23:25
could have made a new project out of that
Archomeda
@Archomeda
Jul 28 2017 23:25
i don't even have access to it anymore since my account doesn't have private repos anymore... haha
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:25
I could renew my student account but..eh
Archomeda
@Archomeda
Jul 28 2017 23:26
it was actually something that people kind of widely used
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:26
I graduated 2 years ago
they still didn't disable my e-mail
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Jul 28 2017 23:26
¯\_(ツ)_/¯
Archomeda
@Archomeda
Jul 28 2017 23:26
widely as in... a community where people were editing their pokemon saves hahaha
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:26
Like PokeGen?
Archomeda
@Archomeda
Jul 28 2017 23:27
it was only a mystery gift editor for d/p/pt/hg/ss
darthmaim
@darthmaim
Jul 28 2017 23:27
I made a website for Pokemon Go just after it came out to find people in your area to trade pokemon with
they still don't have trading...
the domain just ran out last month
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:27
I sort of broke into the new Nintendo Online app and found Splatoon 2's API
but I'm pretty sure writing an app for that would be..problematic
@darthmaim I got tired of that, so I started buying 10-year domain registrations instead
keeps me from buying them because expensive, and also I'll really forget by the time they expire
darthmaim
@darthmaim
Jul 28 2017 23:28
:D
also I'll feel really old by then :<
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:29
ah, explorers of time
Archomeda
@Archomeda
Jul 28 2017 23:29
well.. that's where the image comes from yes
but it edits generation 4 and 5 saves for their mystery gifts (or the mystery gift files directly)
first time i ever worked with WPF
and i went overboard with the styling as you can see
i very much dislike how WPF works
but you can do cool stuff with it, if you're willing to spend a decade on it
darthmaim
@darthmaim
Jul 28 2017 23:33
well @lye, once you have some time and feeling adventurous, you could enable /v2/account/mails :P
one less unused domain https://gw2mail.com/
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:33
I think part of my problem is I keep doing projects based on existing APIs rather than coming up with original stuff
Archomeda @Archomeda browses through his own gitlab install
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:34
I gave up on gitlab a while back
can't use any of the fancy toys on other sites D:
Archomeda
@Archomeda
Jul 28 2017 23:34

Archomeda / Cities Skylines DLC Enabler

uhhhh.... right there's a reason why that's private cough

i love the CI actually
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:36
the CI is nice, but things like codeclimate consider everything on gitlab to be a private repo and thus, premium
Archomeda
@Archomeda
Jul 28 2017 23:37
:(
(also, regarding that cities skylines repo... well, if you ever make a game in unity with dlc and mods: don't ever trust mods to not touch your assembly code, and above all, don't actually ship dlc contents with the main game, even if you don't own the dlc)
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:39
maybe I should step back from web and try a project in C again..I dunno
Archomeda
@Archomeda
Jul 28 2017 23:40
C...
Archomeda @Archomeda shudders
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:40
don't tell @lye
Archomeda
@Archomeda
Jul 28 2017 23:40
there's a reason people moved on
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:41
excuse you
Archomeda
@Archomeda
Jul 28 2017 23:41
:P
i hate C with a passion
so much stuff you take for granted in modern languages... just isn't available in C
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:42
Archomeda
@Archomeda
Jul 28 2017 23:42
but at the same time, it also doesn't have a bloated framework/API
i'll never forget the course where i had to apply Scala stuff in C
it was BS
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:44
what
java and c are like, polar opposites
Archomeda
@Archomeda
Jul 28 2017 23:44
tell me about it
had to do it in Javascript as well
because reasons
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Jul 28 2017 23:45
¯\_(ツ)_/¯
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:45
I should learn more C++ too, though
Archomeda
@Archomeda
Jul 28 2017 23:45
but really, scala was like the teacher's baby or something :/
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:45
I've been programming almost 11 years and I still have 0 clue what the hell a Vector is
Archomeda
@Archomeda
Jul 28 2017 23:46
i just imagine it's like an ArrayList
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:46
Maybe?
Archomeda
@Archomeda
Jul 28 2017 23:46
at least that's what Java calls that stuff i think
C# it's just a List
Eearslya @Eearslya googles for vector stuff to listen to on the drive home
Archomeda
@Archomeda
Jul 28 2017 23:47
also, you mean std::vector right?
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:47
ye
Archomeda
@Archomeda
Jul 28 2017 23:47
yeah, i think they should be similar in use
iirc a vector can scale whenever you add stuff to it
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:48
if that's true, I wanna know how they work
Archomeda
@Archomeda
Jul 28 2017 23:48
you don't have to copy stuff to another array yourself if you suddenly have to allocate more

C++17

wait what... when did that happen?

2017
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:50
well, I'mma listen to this guy while I drive home
back in like an hour
Archomeda
@Archomeda
Jul 28 2017 23:50
:wave:
C99 has lists and trees and stuff I don't know where you've ben
s/ben/been
thanks gitter
vectors are ... really easy to implement
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:51
yeah but if I wanna commit more to openttd I need C++
Archomeda
@Archomeda
Jul 28 2017 23:51
oh no, i just saw that C++17 popping up on that page
C++ is great, it's practically javascript
auto fn = [](int value) { return value == 1 };
Archomeda
@Archomeda
Jul 28 2017 23:51
also, i haven't really worked with C99
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:52
I like C++, but I just feel less close to the hardware versus C
Archomeda
@Archomeda
Jul 28 2017 23:52
i started doing stuff in C++11
don't worry, you can still use C in C++
:P
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:53
I know C++ still compiles to assembly, I just..feel weird, like it's adding more to the assembly code (which I know, logically, is most likely not the case)
Archomeda
@Archomeda
Jul 28 2017 23:53
heck, for a dynamic library, changes are high you actually have to export your functions as C, in order for other programs to consume your library
not that it's hard to do that... i mean you can just wrap your functions for that
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:54
I could write an IRC server that follows the RFC (and watch as every client is incompatible with it)
Archomeda
@Archomeda
Jul 28 2017 23:55
heh
but i'm not the best at C++
@Archomeda none of my C compiles with a C++ compiler
Archomeda
@Archomeda
Jul 28 2017 23:55
probably worse than most people who do stuff in C++
ehh
well i dunno
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:56
@lye how did you manage that
C has features that C++ doesn't have
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:56
what about extern "C"?
I use designated initializers literally everywhere
nope
grammatical differences
not linkage
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:56
designated initializers?
Archomeda
@Archomeda
Jul 28 2017 23:56
i always thought C code could be compiled by C++ compilers
although, i never actually bothered to verify that
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:57
for the most part, it can
typedef struct {
    int bar, baz;
}
foo_t;

foo_t foo = {
    .bar = 1,
    .baz = 2,
};
@Archomeda it's a common misconception
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:57
wait really? g++ can't do that?
nope
Archomeda
@Archomeda
Jul 28 2017 23:57
fair
it's a syntax error in C++
Archomeda
@Archomeda
Jul 28 2017 23:57
oh, that's called designated initializers?
yep
super useful because I shuffle struct field orders around occassionally
Archomeda
@Archomeda
Jul 28 2017 23:59
well, i think c++ didn't have any initializer capability until C++11?
Eearslya Sleiarion
@Eearslya
Jul 28 2017 23:59
alright I'mma actually go now
Archomeda
@Archomeda
Jul 28 2017 23:59
but now i'm talking about class fields iirc
cya