Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1728 questions
0
votes
0 answers

Why are move semantics functions written as taking r-value references?

I don't understand why the standard is now using a move constructor and move assignment operator that take r-value arguments. I know that often it's useful to use temporary objects as arguments to a constructor or an assignment, as: Object…
Zebrafish
  • 11,682
  • 3
  • 43
  • 119
0
votes
3 answers

Coding a Tumblr Theme - List posts as list or just a stack of divs?

I'm in the process of coding my own Tumblr Theme. Well I was wondering how should I list the posts? In the basic theme, (the one you get when you sign up) doesn't use list items (
  • ). But I saw in another theme that it does use list items. By the…
  • nowayyy
    • 917
    • 1
    • 17
    • 45
    0
    votes
    0 answers

    specifying all classes in ontology as range of owl property

    I am designing OWL DL Ontology for my internal use (X), there is a very abstract property(x:relatedTo) that I need to set its range as all the classes live in another imported ontology (Y), such that x:relatedTo rdf:type owl:AnnotationProperty .…
    0
    votes
    1 answer

    generate RDF document From OWL file

    is there any tool that can generate RDF document from OWL file ?
    user458056
    • 75
    • 4
    0
    votes
    2 answers

    Both code are perfectly valid , but which is semantically correct?

    Both code are perfectly valid , but which is semantically correct? It has

    1. heading level 2

      some long text here some long text here some long text here some long text here…

    Jamna
    • 2,561
    • 7
    • 28
    • 22
    0
    votes
    0 answers

    Function reassignment in 'Learn You a Haskell: Starting Out'

    We create this function: conanO'Brien = "It's a-me, Conan O'Brien!" The author then states, "Because we can't change what names (and functions) mean once we've defined them, conanO'Brien and the string "It's a-me, Conan O'Brien!" can be used…
    0
    votes
    4 answers

    Proper use of headline-elements

    I know that the most top headline must use

    , sub-headline

    and so on but my question is whether the

    and the

    can be siblings or does the

    -element always need to be further down the hierarchy than the

    ?

    Top…

    Ape
    • 58
    • 7
    0
    votes
    2 answers

    Is the method/function responsible for validate your call?

    Why is best way to write a function/method? 1 - First way function main() { back() } function back() { if(step > 0) { step = step - 1 } } 2 - Second Way function main() { if(step > 0) { back() …
    Bruno Quaresma
    • 9,457
    • 7
    • 32
    • 50
    0
    votes
    1 answer

    How do main and article elements differ in HTML5?

    My understanding is they both group content with
    being suitable for content that can be syndicated, and
    being suitable for content that is unique to a document. To me, they sound the same. How do
    and
    elements…
    henrywright
    • 10,070
    • 23
    • 89
    • 150
    0
    votes
    1 answer

    using word2vec with heroku cloud platform

    how can i use word2vec with heroku or any other cloud platform. I want to store my trained data set on cloud platform. so that every query can be retrieved through there.
    0
    votes
    2 answers

    Semantics based code search

    We have a large number of repositories. We want to implement a semantics(functionality) based code search on those repositories. Right now, we already have implemented keyword based code search in which we crawled through all the repository files…
    0
    votes
    1 answer

    How word2vec retrieves result from binary files?

    from gensim.models.keyedvectors import KeyedVectors model = KeyedVectors.load_word2vec_format('google_news.bin', binary=True) print(model['the']) # this prints the 300D vector for the word 'the' the code loads the google_news binary file to model.…
    0
    votes
    3 answers

    Why does HTML have elements like

    There are some commands in HTML that are confusing me. For example, what do the
    0
    votes
    1 answer

    Use dkpro semantic similarity with uby

    I want to compute similarity between strings with dkpro similarity (https://dkpro.github.io/dkpro-similarity/), it works, like so: import org.dkpro.similarity.algorithms.api.SimilarityException; import…
    0
    votes
    1 answer

    vs background-image

    I found this on stackoverflow and I have a question regarding this. Can I use this code on CodePen to satisfy SEO and design part of the page?
    something important
    something…
    user7077603